예제 #1
0
        public void TestTrue()
        {
            TestAssert.IsTrue(TestListComparer.ContainSameElements(
                                  new List <int> {
                1
            },
                                  new List <int> {
                1
            }));

            TestAssert.IsTrue(TestListComparer.ContainSameElements(
                                  new List <int> {
                1, 2
            },
                                  new List <int> {
                2, 1
            }));

            TestAssert.IsTrue(TestListComparer.ContainSameElements(
                                  new List <int> {
                1, 2, 3
            },
                                  new List <int> {
                3, 2, 1
            }));

            TestAssert.IsTrue(TestListComparer.ContainSameElements(
                                  new List <int> {
            },
                                  new List <int> {
            }));
        }
        public void TestTrue()
        {
            Assert.That(TestListComparer.ContainSameElements(
                            new List <int> {
                1
            },
                            new List <int> {
                1
            }));

            Assert.That(TestListComparer.ContainSameElements(
                            new List <int> {
                1, 2
            },
                            new List <int> {
                2, 1
            }));

            Assert.That(TestListComparer.ContainSameElements(
                            new List <int> {
                1, 2, 3
            },
                            new List <int> {
                3, 2, 1
            }));

            Assert.That(TestListComparer.ContainSameElements(
                            new List <int>(),
                            new List <int>()));
        }
        public void TestFalse()
        {
            Assert.That(!TestListComparer.ContainSameElements(
                            new List <int> {
                1, 2, 3
            },
                            new List <int> {
                3, 2, 3
            }));

            Assert.That(!TestListComparer.ContainSameElements(
                            new List <int> {
                1, 2
            },
                            new List <int> {
                1, 2, 3
            }));
        }