Exemple #1
0
        public void TestSetEquals()
        {
            var set = new TestSet <int>
            {
                1, 2, 3, 4
            };

            Assert.False(set.SetEquals(new[] { 3, 4, 5 }));
            Assert.False(set.SetEquals(new[] { 5, 6 }));
            Assert.False(set.SetEquals(new int[] { }));
            Assert.True(set.SetEquals(new int[] { 1, 2, 3, 4 }));
        }