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