예제 #1
0
        public void RemoveDuplicated_Two_Numbers_Duplicated_Test()
        {
            List<int> valores = new List<int>(new int[] { 1, 1, 1, 2, 2 });
            Lista target = new Lista(valores); // TODO: Initialize to an appropriate value
            List<int> expected = new List<int>(new int[] { 1, 2 });
            List<int> actual;
            actual = target.RemoveDuplicated(valores);

            Assert.AreEqual(expected[0], actual[0]);
            Assert.AreEqual(expected[1], actual[1]);
        }
예제 #2
0
        public void RemoveDuplicated_Four_Numbers_Duplicated_Test()
        {
            List<int> valores = new List<int>(new int[] { 7, 1, 2, 1, 2, 5, 3, 3, 4, 7, 5, 8 });
            Lista target = new Lista(valores); // TODO: Initialize to an appropriate value
            List<int> expected = new List<int>(new int[] { 7, 1, 2, 5, 3, 4, 8 });
            List<int> actual;
            actual = target.RemoveDuplicated(valores);

            Assert.AreEqual(expected[0], actual[0]);
            Assert.AreEqual(expected[1], actual[1]);
            Assert.AreEqual(expected[2], actual[2]);
            Assert.AreEqual(expected[3], actual[3]);
            Assert.AreEqual(expected[4], actual[4]);
            Assert.AreEqual(expected[5], actual[5]);
        }