示例#1
0
        public static void Test_Accepts_Expected_Ports()
        {
            //can't do test cases because it's not const

            //arrange
            ProxyLoadBalancerConnectionGateKeeper keeper = new ProxyLoadBalancerConnectionGateKeeper();

            //assert
            Assert.True(keeper.isValidPort(InboundConnectionSettings.Default.AuthServiceSessionPort));
            Assert.True(keeper.isValidPort(InboundConnectionSettings.Default.ClientSessionPort));
        }
示例#2
0
        public static void Test_Rejects_Unexpected_Ports(int port)
        {
            //can't do test cases because it's not const

            //arrange
            ProxyLoadBalancerConnectionGateKeeper keeper = new ProxyLoadBalancerConnectionGateKeeper();

            //assert
            Assert.IsFalse(keeper.isValidPort(port), "Found an unexpected accepted port {0}", port);
        }