public void AreEquivalentHandlesNull() { ICollection set1 = new ICollectionAdapter(null, "x", null, "z"); ICollection set2 = new ICollectionAdapter("z", null, "x", null); Ensure.AreEquivalent(set1, set2); }
public void Equivalent() { ICollection set1 = new ICollectionAdapter("x", "y", "z"); ICollection set2 = new ICollectionAdapter("z", "y", "x"); Ensure.AreEquivalent(set1, set2); }
public void ContainsFails_EmptyICollection() { ICollectionAdapter ca = new ICollectionAdapter(new object[0]); expectedMessage = " Expected: collection containing \"x\"" + Environment.NewLine + " But was: <empty>" + Environment.NewLine; Ensure.Contains("x", ca); }
public void ContainsFails_ICollection() { ICollectionAdapter ca = new ICollectionAdapter(new string[] { "x", "y", "z" }); expectedMessage = " Expected: collection containing \"a\"" + Environment.NewLine + " But was: < \"x\", \"y\", \"z\" >" + Environment.NewLine; Ensure.Contains("a", ca); }
public void EquivalentFailTwo() { ICollection set1 = new ICollectionAdapter("x", "y", "x"); ICollection set2 = new ICollectionAdapter("x", "y", "z"); expectedMessage = " Expected: equivalent to < \"x\", \"y\", \"x\" >" + Environment.NewLine + " But was: < \"x\", \"y\", \"z\" >" + Environment.NewLine; Ensure.AreEquivalent(set1, set2); }
public void ContainsNull_ICollection() { ICollectionAdapter ca = new ICollectionAdapter(new object[] { 1, 2, 3, null, 4, 5 }); Ensure.Contains(null, ca); }
public void Contains_ICollection() { ICollectionAdapter ca = new ICollectionAdapter(new string[] { "x", "y", "z" }); Ensure.Contains("x", ca); }
public void ContainsFails_EmptyICollection() { ICollectionAdapter ca = new ICollectionAdapter( new object[0] ); expectedMessage = " Expected: collection containing \"x\"" + Environment.NewLine + " But was: <empty>" + Environment.NewLine; Ensure.Contains( "x", ca ); }
public void ContainsNull_ICollection() { ICollectionAdapter ca = new ICollectionAdapter( new object[] {1, 2, 3, null, 4, 5} ); Ensure.Contains( null, ca ); }
public void ContainsFails_ICollection() { ICollectionAdapter ca = new ICollectionAdapter( new string[] {"x", "y", "z"} ); expectedMessage = " Expected: collection containing \"a\"" + Environment.NewLine + " But was: < \"x\", \"y\", \"z\" >" + Environment.NewLine; Ensure.Contains( "a", ca ); }
public void Contains_ICollection() { ICollectionAdapter ca = new ICollectionAdapter( new string[] {"x", "y", "z"} ); Ensure.Contains( "x", ca ); }
public void AreEquivalentHandlesNull() { ICollection set1 = new ICollectionAdapter( null, "x", null, "z" ); ICollection set2 = new ICollectionAdapter( "z", null, "x", null ); Ensure.AreEquivalent( set1, set2 ); }
public void EquivalentFailTwo() { ICollection set1 = new ICollectionAdapter( "x", "y", "x" ); ICollection set2 = new ICollectionAdapter( "x", "y", "z" ); expectedMessage = " Expected: equivalent to < \"x\", \"y\", \"x\" >" + Environment.NewLine + " But was: < \"x\", \"y\", \"z\" >" + Environment.NewLine; Ensure.AreEquivalent( set1, set2 ); }
public void Equivalent() { ICollection set1 = new ICollectionAdapter( "x", "y", "z" ); ICollection set2 = new ICollectionAdapter( "z", "y", "x" ); Ensure.AreEquivalent( set1, set2 ); }