コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="NetworkGatewayIntegrationTests"/> class.
        /// </summary>
        /// <param name="testOutputHelper">The test output helper.</param>
        /// <autogeneratedoc />
        public NetworkGatewayIntegrationTests(ITestOutputHelper testOutputHelper) : base(testOutputHelper)
        {
            _commonNetworkServices =
                CommonNetworkServices.CreateInstance(TestLoggerFactory, "NetworkGatewayIntegrationTests");
            var networkingSystem = new NetworkingSystem(TestLoggerFactory.CreatePureLogger <NetworkingSystem>());

            _gatewayIPAddressSubnet = networkingSystem.GetDefaultGatewayAddressSubnet();
        }
コード例 #2
0
        public void NetworkingSystem_GetDefaultGatewayAddressSubnet()
        {
            var networkingSystem = new NetworkingSystem(TestLoggerFactory.CreatePureLogger <NetworkingSystem>());

            var addressSubnet = networkingSystem.GetDefaultGatewayAddressSubnet();

            addressSubnet.Should().NotBeNull();
        }