public void EmptyArrayEqual() { object[] o1 = new object[] {}; object[] o2 = new object[] {}; IsListEqual c = new IsListEqual(o1); Assertion.Assert(c.Eval(o2)); Assertion.Assert(c.Eval(o1)); Assertion.Assert(!c.Eval(null)); }
public void NotObjectArrays() { object o1 = new object(); object[] o2 = new object[] {}; IsListEqual c = new IsListEqual(o1); Assertion.Assert(!c.Eval(o2)); Assertion.Assert(!c.Eval(o1)); Assertion.Assert(!c.Eval(null)); }
public void EmptyIListEqual() { IList o1 = new ArrayList(); IList o2 = new ArrayList(); IsListEqual c = new IsListEqual(o1); Assertion.Assert(c.Eval(o2)); Assertion.Assert(c.Eval(o1)); Assertion.Assert(!c.Eval(null)); }
public void NotIList() { object o1 = new object(); IList o2 = new ArrayList(); IsListEqual c = new IsListEqual(o1); Assertion.Assert(!c.Eval(o2)); Assertion.Assert(!c.Eval(o1)); Assertion.Assert(!c.Eval(null)); }
public void NotEqualMultipleElements() { object[] o1 = new object[2] {"foo", "bar"}; object[] o2 = new object[2] {"foo", "baz"}; IsListEqual c = new IsListEqual(o1); Assertion.Assert(!c.Eval(o2)); }
public void NotEqualSingleElement() { object[] o1 = new object[1] {"foo"}; object[] o2 = new object[1] {"bar"}; IsListEqual c = new IsListEqual(o1); Assertion.Assert(!c.Eval(o2)); }
public void DifferentSizeEqual() { object[] o1 = new object[1] {"foo"}; object[] o2 = new object[2] {"foo", "bar"}; IsListEqual c = new IsListEqual(o1); Assertion.Assert(!c.Eval(o2)); }
public void DifferentSizeEqual() { IList o1 = new ArrayList(new object[] { "foo" }); IList o2 = new ArrayList(new object[2] { "foo", "bar" }); IsListEqual c = new IsListEqual(o1); Assertion.Assert(!c.Eval(o2)); }
public void NotEqualMultipleElements() { object[] o1 = new object[2] { "foo", "bar" }; object[] o2 = new object[2] { "foo", "baz" }; IsListEqual c = new IsListEqual(o1); Assertion.Assert(!c.Eval(o2)); }
public void NotEqualSingleElement() { object[] o1 = new object[1] { "foo" }; object[] o2 = new object[1] { "bar" }; IsListEqual c = new IsListEqual(o1); Assertion.Assert(!c.Eval(o2)); }
public void NotEqualMultipleElements() { IList o1 = new ArrayList(new object[2] { "foo", "bar" }); IList o2 = new ArrayList(new object[2] { "foo", "baz" }); IsListEqual c = new IsListEqual(o1); Assertion.Assert(!c.Eval(o2)); }
public void DifferentSizeEqual() { object[] o1 = new object[1] { "foo" }; object[] o2 = new object[2] { "foo", "bar" }; IsListEqual c = new IsListEqual(o1); Assertion.Assert(!c.Eval(o2)); }
public void NotEqualSingleElement() { IList o1 = new ArrayList(new object[1] { "foo" }); IList o2 = new ArrayList(new object[1] { "bar" }); IsListEqual c = new IsListEqual(o1); Assertion.Assert(!c.Eval(o2)); }
public void NotEqualSingleElement() { IList o1 = new ArrayList(new object[1] {"foo"}); IList o2 = new ArrayList(new object[1] {"bar"}); IsListEqual c = new IsListEqual(o1); Assertion.Assert(!c.Eval(o2)); }
public void NotEqualMultipleElements() { IList o1 = new ArrayList(new object[2] {"foo", "bar"}); IList o2 = new ArrayList(new object[2] {"foo", "baz"}); IsListEqual c = new IsListEqual(o1); Assertion.Assert(!c.Eval(o2)); }
public void DifferentSizeEqual() { IList o1 = new ArrayList(new object[] {"foo"}); IList o2 = new ArrayList(new object[2] {"foo", "bar"}); IsListEqual c = new IsListEqual(o1); Assertion.Assert(!c.Eval(o2)); }