예제 #1
0
		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));
		}
예제 #2
0
		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));
		}
예제 #3
0
		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));
		}
예제 #4
0
		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));
		}
예제 #5
0
		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));
		}
예제 #6
0
        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));
        }
예제 #7
0
        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));
        }
예제 #8
0
        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));
        }
예제 #9
0
        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));
        }
예제 #10
0
        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));
        }
예제 #11
0
        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));
        }
예제 #12
0
        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));
        }
예제 #13
0
        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));
        }
예제 #14
0
        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));
        }
예제 #15
0
        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));
        }
예제 #16
0
		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));
		}
예제 #17
0
		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));
		}
예제 #18
0
		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));
		}
예제 #19
0
		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));
		}
예제 #20
0
		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));
		}