Пример #1
0
        public void Test_True_Equals()
        {
            var ip          = new IP("1", "12.12.12.12/32");
            var grouped_ips = new GroupedIPs(ip);

            var expected_grouped_ips = new GroupedIPs(ip);

            Assert.True(grouped_ips.Equals(expected_grouped_ips));
        }
Пример #2
0
        public void Test_False_Equals(string id, string subnet)
        {
            var ip          = new IP("1", "12.12.12.12/32");
            var grouped_ips = new GroupedIPs(ip);

            var expected_ip          = new IP(id, subnet);
            var expected_grouped_ips = new GroupedIPs(expected_ip);

            Assert.False(grouped_ips.Equals(expected_grouped_ips));
        }