public void MostPopularCharInStringDealsWithShortInputStrings() { try { var output = PopularCharInString.MostPopular("a"); } catch (Exception exception) { Assert.IsNotNull(exception); Assert.IsInstanceOfType(exception, typeof(ArgumentException)); } }
public void MostPopularCharInStringDealsWithWhitespace() { var output = PopularCharInString.MostPopular("a b cc ddd"); Assert.AreEqual('d', output); }
public void MostPopularCharInStringReturnsMostPopularChar() { var output = PopularCharInString.MostPopular("asdsdidsfdsieiwfoinsjffahjajwekhjfewhjqkafakj"); Assert.AreEqual('f', output); }