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" })); }
public void Test5() { Assert.AreEqual("1232456", Day1.UniqueInOrder("112332444566")); }
public void Test4() { Assert.AreEqual("DA", Day1.UniqueInOrder("DDA")); }
public void Test3() { Assert.AreEqual("AD", Day1.UniqueInOrder("ADD")); }
public void Test2() { Assert.AreEqual("aA", Day1.UniqueInOrder("aA")); }
public void Test1() { Assert.AreEqual("ABCDAB", Day1.UniqueInOrder("AAAABBBCCDAABBB")); }
public void EmptyTest() { Assert.AreEqual("", Day1.UniqueInOrder("")); }