public void Formatting_Results_For_Division() { var simpleMath = new SimpleMath(); simpleMath.AskForFirstNumber(new StubUserAdapter("10")); simpleMath.AskForSecondNumber(new StubUserAdapter("5")); Result formattedResults = simpleMath.Results(); Assert.That(formattedResults.Division, Is.EqualTo("10 / 5 = 2")); }
public void Execute() { var simpleMath = new SimpleMath(); Console.WriteLine("What is the first number?"); simpleMath.AskForFirstNumber(this); Console.WriteLine("What is the second number?"); simpleMath.AskForSecondNumber(this); var results = simpleMath.Results(); Console.WriteLine("{0}\n{1}\n{2}\n{3}", results.Addition, results.Subtraction, results.Multiplication, results.Division); }