Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        public void TestActionSandboxedNull()
        {
            var controller = new SandboxProtocolController();

            Assert.Null(controller.Action(null));
        }