Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
public void TestMarkingGuess(string result, string guess, string secret) { Expect.Call(dataReader.getInputData()).Return(guess); Expect.Call(randomSecret.NextSecret()).Return(secret); mock.ReplayAll(); GuessMarker guessMarker = new GuessMarker(dataReader, dataWriter, randomSecret); guessMarker.Step(); dataWriter.AssertWasCalled(x => x.WriteData(result)); }