public void FromTabSeparatedValues_WhenGivenRabbitThenTabThenSnailThenNewLine_ShouldHaveGoodToString() { Flashcard flashcard = Flashcard.FromTabSeparatedValues("rabbit\tsnail\n"); string result = flashcard.ToString(); Assert.That(result, Is.EqualTo("rabbit | snail")); }
public void FromTabSeparatedValues_WhenGivenTurtleThenTabThenFoxThenNewLine_ShouldHaveGoodToString() { Flashcard flashcard = Flashcard.FromTabSeparatedValues("turtle\tfox\n"); string result = flashcard.ToString(); Assert.That(result, Is.EqualTo("turtle | fox")); }
public void FromTabSeparatedValues_WhenGivenRabbitThenNewLine_ShouldNotCrashButSetBackToEmptyString() { Flashcard flashcard = Flashcard.FromTabSeparatedValues("rabbit\n"); string result = flashcard.ToString(); Assert.That(result, Is.EqualTo("rabbit | ")); }
public void ToString_WhenFrontSideIsZAndBackSideIsLowercaseD_ShouldReturnTheFrontSideThenAPipeCharacterThenTheBackSide() { Flashcard flashcard = new Flashcard("Z", "d"); Assert.That(flashcard.ToString(), Is.EqualTo("Z | d")); }