public void Execute_Should_Write_To_Console_Yell_Plus_All_But_First_Word() { // Arrange // Act cmd.Execute("yell blah"); // Assert mock.AssertWasCalled(m => m.WriteLine("BLAH")); mock.AssertWasCalled(m => m.ForegroundColor = ConsoleColor.Red); mock.AssertWasCalled(m => m.ResetColor()); }
public void Execute_Should_Write_To_Console_All_But_First_Word_In_Caps_And_Red() { //Arrange //Act cmd.Execute("yell idiot"); //Assert mock.AssertWasCalled((m => m.ForegroundColor = ConsoleColor.Red)); mock.AssertWasCalled(m => m.WriteLine("IDIOT")); mock.AssertWasCalled(m => m.ResetColor()); }