public void TestActionSandboxedNotNull() { var called = false; var controller = new SandboxProtocolController() { SandboxedProtocol = new MockIntegrationTestProtocol() { OnActionHandler = action => { called = true; return new List<IPacket>(); } } }; controller.Action(null); Assert.IsTrue(called); }
public void TestActionSandboxedNull() { var controller = new SandboxProtocolController(); Assert.Null(controller.Action(null)); }