Exemplo n.º 1
0
        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>()));
        }
Exemplo n.º 2
0
        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
            }));
        }