public void TestRead_WithStringEnding_WithWhiteSpace() { var userInputImplementation = new ReadTextUserInput(); userInputImplementation.Read("test test test ") .Should().Be(3); }
public void TestRead_WithEmptyString() { var userInputImplementation = new ReadTextUserInput(); userInputImplementation.Invoking(x => x.Read("")) .Should().Throw <Exception>() .WithMessage("There is no text sent."); }