From 37d7ef85798ebcf772d78ed003d1a615d15d0867 Mon Sep 17 00:00:00 2001 From: wrexbe <81056464+wrexbe@users.noreply.github.com> Date: Thu, 25 Aug 2022 21:43:51 -0700 Subject: [PATCH] Add sandbox test (#10767) --- .../Tests/Utility/SandboxTest.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Content.IntegrationTests/Tests/Utility/SandboxTest.cs diff --git a/Content.IntegrationTests/Tests/Utility/SandboxTest.cs b/Content.IntegrationTests/Tests/Utility/SandboxTest.cs new file mode 100644 index 0000000000..030d9e27c1 --- /dev/null +++ b/Content.IntegrationTests/Tests/Utility/SandboxTest.cs @@ -0,0 +1,16 @@ +using System.Threading.Tasks; +using NUnit.Framework; + +namespace Content.IntegrationTests.Tests.Utility; + +public sealed class SandboxTest +{ + [Test] + public async Task Test() + { + await using var pairTracker = await PoolManager.GetServerClient(new PoolSettings{NoServer = true}); + var client = pairTracker.Pair.Client; + await client.CheckSandboxed(typeof(Client.Entry.EntryPoint).Assembly); + await pairTracker.CleanReturnAsync(); + } +}