Пример #1
0
 public void ListTest()
 {
     Assert.AreEqual(new List <int> {
         1, 2, 3
     }, Day1.UniqueInOrder(new List <int> {
         1, 2, 3, 3
     }));
     Assert.AreEqual(new List <double> {
         1, 2, 3
     }, Day1.UniqueInOrder(new List <double> {
         1, 2, 3, 3
     }));
     Assert.AreEqual(new List <char> {
         '1', '2', '3'
     }, Day1.UniqueInOrder(new List <char> {
         '1', '2', '3', '3'
     }));
     Assert.AreEqual(new List <string> {
         "1", "2", "3"
     }, Day1.UniqueInOrder(new List <string> {
         "1", "2", "3", "3"
     }));
 }
Пример #2
0
 public void Test5()
 {
     Assert.AreEqual("1232456", Day1.UniqueInOrder("112332444566"));
 }
Пример #3
0
 public void Test4()
 {
     Assert.AreEqual("DA", Day1.UniqueInOrder("DDA"));
 }
Пример #4
0
 public void Test3()
 {
     Assert.AreEqual("AD", Day1.UniqueInOrder("ADD"));
 }
Пример #5
0
 public void Test2()
 {
     Assert.AreEqual("aA", Day1.UniqueInOrder("aA"));
 }
Пример #6
0
 public void Test1()
 {
     Assert.AreEqual("ABCDAB", Day1.UniqueInOrder("AAAABBBCCDAABBB"));
 }
Пример #7
0
 public void EmptyTest()
 {
     Assert.AreEqual("", Day1.UniqueInOrder(""));
 }