public void CountWordTestCaseOne(string inputString) { var output = wordCounter.CountWord(inputString); Assert.IsTrue(output != null && output.Count() > 0); Assert.IsTrue(output.Count() == 7); Assert.IsTrue(output.Where(x => x.WordString.Equals("Go")).First().WordCount == 1); Assert.IsTrue(output.Where(x => x.WordString.Equals("do")).First().WordCount == 2); Assert.IsTrue(output.Where(x => x.WordString.Equals("that")).First().WordCount == 2); Assert.IsTrue(output.Where(x => x.WordString.Equals("thing")).First().WordCount == 1); Assert.IsTrue(output.Where(x => x.WordString.Equals("you")).First().WordCount == 1); Assert.IsTrue(output.Where(x => x.WordString.Equals("so")).First().WordCount == 1); Assert.IsTrue(output.Where(x => x.WordString.Equals("well")).First().WordCount == 1); }