public void GivenATestDescriptionNotStartingWithTheKeywordWhenWrite() { _testDescription = "TheyAllEatADeliciousCake"; var testDescriptionWriter = new TestDescriptionWriter(); using (var sw = new StringWriter()) { Console.SetOut(sw); testDescriptionWriter.Write(_testDescription, Keyword); _textInConsole = sw.ToString(); } }
public void GivenATestDescriptionStartingWithTheKeywordWhenWrite() { _testDescription = "ThenTheyLiveHappilyEverAfter"; const string keyword = "Then"; var testDescriptionWriter = new TestDescriptionWriter(); using (var sw = new StringWriter()) { Console.SetOut(sw); testDescriptionWriter.Write(_testDescription, keyword); _textInConsole = sw.ToString(); } }