public void SingleTest() { Assert.AreEqual(97, UnicodeTotal.UniTotal("a")); Assert.AreEqual(98, UnicodeTotal.UniTotal("b")); Assert.AreEqual(99, UnicodeTotal.UniTotal("c")); Assert.AreEqual(100, UnicodeTotal.UniTotal("d")); Assert.AreEqual(101, UnicodeTotal.UniTotal("e")); }
public void ZeroTest() { Assert.AreEqual(0, UnicodeTotal.UniTotal("")); }
public void SentenceTest() { Assert.AreEqual(1873, UnicodeTotal.UniTotal("Mary Had A Little Lamb")); }
public void MultipleTest() { Assert.AreEqual(291, UnicodeTotal.UniTotal("aaa")); }