Esempio n. 1
0
        public void TestSendSandboxedNull()
        {
            var controller = new SandboxProtocolController();

            Assert.Null(controller.Send(null));
        }
Esempio n. 2
0
        public void TestSendSandboxedNotNull()
        {
            var called = false;

            var controller = new SandboxProtocolController() {
                SandboxedProtocol = new MockIntegrationTestProtocol() {
                    OnSendHandler = packet => {
                        called = true;

                        return new Packet();
                    }
                }
            };

            controller.Send(null);

            Assert.IsTrue(called);
        }