public void Test1() { IndexedSet <int> set1 = new IndexedSet <int>() { }; IEnumerable <int> set2 = new List <int>() { }; Assert.False(set1.IsProperSupersetOf(set2)); }
public void Test5() { IndexedSet <int> set1 = new IndexedSet <int>() { 1, 2, 3 }; IEnumerable <int> set2 = new List <int>() { }; Assert.True(set1.IsProperSupersetOf(set2)); }
public void IsProperSupersetOf() { var firstSet = new IndexedSet <string>(); var secondSet = new IndexedSet <string>(); Assert.False(firstSet.IsProperSupersetOf(secondSet)); Assert.False(secondSet.IsProperSupersetOf(firstSet)); firstSet.Add("A"); Assert.True(firstSet.IsProperSupersetOf(secondSet)); Assert.False(secondSet.IsProperSupersetOf(firstSet)); secondSet.Add("A"); Assert.False(firstSet.IsProperSupersetOf(secondSet)); Assert.False(secondSet.IsProperSupersetOf(firstSet)); firstSet.Add("B"); Assert.True(firstSet.IsProperSupersetOf(secondSet)); Assert.False(secondSet.IsProperSupersetOf(firstSet)); }