public void BasicTest() { Assert.AreEqual("KkLlMmNnOoPp4567", WhichStringIsWorthMore.HighestValue("AaBbCcXxYyZz0189", "KkLlMmNnOoPp4567")); Assert.AreEqual("ABcd", WhichStringIsWorthMore.HighestValue("ABcd", "0123")); Assert.AreEqual("{}[]@~'#:;", WhichStringIsWorthMore.HighestValue("!\"?$%^&*()", "{}[]@~'#:;")); Assert.AreEqual("ABCD", WhichStringIsWorthMore.HighestValue("ABCD", "DCBA")); Assert.AreEqual("Abc", WhichStringIsWorthMore.HighestValue("", "Abc")); }
public void RandomTest() { for (var i = 0; i < 100; i++) { string a = RandomStr(); string b = RandomStr(); string actual = WhichStringIsWorthMore.HighestValue(a, b); string expected = Solution(a, b); Assert.AreEqual(expected, actual); } }