public void LengthOfLastWordTest() { var testCase = new ArrayQ(); Assert.AreEqual(5, testCase.LengthOfLastWord("Hello World")); Assert.AreEqual(0, testCase.LengthOfLastWord("")); Assert.AreEqual(0, testCase.LengthOfLastWord(" ")); Assert.AreEqual(6, testCase.LengthOfLastWord("How are you doing?")); Assert.AreEqual(6, testCase.LengthOfLastWord("How are you doing? ")); }