public void Execute() { var quotePrinter = new QuotePrinter(); Console.Write("{0} ", quotePrinter.AskForQuote()); var quote = Console.ReadLine(); Console.Write("{0} ", quotePrinter.AskForAuthor()); var author = Console.ReadLine(); Console.WriteLine(quotePrinter.FormatQuote(author, quote)); }
public void Formatting_Quote() { string formattedQuote = new QuotePrinter().FormatQuote("Shaun", "This is a quote"); Assert.That(formattedQuote, Is.EqualTo("Shaun says, \"This is a quote.\"")); }
public void Asking_For_An_Author() { string author = new QuotePrinter().AskForAuthor(); Assert.That(author, Is.EqualTo("Who said it?")); }
public void Asking_For_A_Quote() { string quote = new QuotePrinter().AskForQuote(); Assert.That(quote, Is.EqualTo("What is the quote?")); }