public void DetermineProperSupersetOfEnumerable() { IImmutableSet <int> seta = new ImmutableSet8().Add(1, 2, 4, 7); var setb = Enumerable.Range(1, 5); var setc = new int[] { 1, 2, 4 }; // proper superset should contain all values in subset seta.IsProperSupersetOf(setb).Should().BeFalse(); // proper superset should contain some values not in subset seta.IsProperSupersetOf(new int[] { 1, 2, 4, 7 }).Should().BeFalse(); seta.IsProperSupersetOf(setc).Should().BeTrue(); }
public void DetermineProperSupersetOfSet() { var seta = new ImmutableSet8().Add(1, 2, 4, 7); var setb = new ImmutableSet8().Add(1, 2, 3, 4, 5); var setc = new ImmutableSet8().Add(1, 2, 4); // proper superset should contain all values in subset seta.IsProperSupersetOf(setb).Should().BeFalse(); // proper superset should contain some values not in subset seta.IsProperSupersetOf(seta).Should().BeFalse(); seta.IsProperSupersetOf(setc).Should().BeTrue(); }