public void TestMostCommon() { var s = "xx yyy yyy xx z yyy"; var be = new Library.BackEnd(s); var expected = "Frequency: 3 times\nyyy "; var actual = be.MostCommon(); Assert.AreEqual(expected, actual); }