Пример #1
0
 public void IsSubsetOf_AssertExceptionWhenSupersetIsSmallerThanSubset()
 {
     string[] superset = { "a", "b" };
     string[] subset   = { "a", "b", "c" };
     OldCollectionAssert.IsSubsetOf(subset, superset);
 }
Пример #2
0
 public void IsSubsetOf_DifferentItemInSubsetRaisesAssertException()
 {
     string[] superset = { "a", "b", "c" };
     string[] subset   = { "a", "d" };
     OldCollectionAssert.IsSubsetOf(subset, superset);
 }
Пример #3
0
 public void IsSubsetOf_UsesValueEqualityForStrings()
 {
     string[] superset = { "ab", "bc", "cd" };
     string[] subset   = { "cd", string.Format("b{0}", "c") };
     OldCollectionAssert.IsSubsetOf(subset, superset);
 }