public void LastAttemptThreeCorrectPosition() { MasterMindGame masterMindTest = new MasterMindGame(6, 2); masterMindTest.SetCorrectNumbers("1234"); masterMindTest.SolveAttempt("1233"); Assert.IsTrue(masterMindTest.LastAttemptResults() == "+++"); }
public void LastAttemptTwoIncorrecttPositionOneCorrect() { MasterMindGame masterMindTest = new MasterMindGame(6, 2); masterMindTest.SetCorrectNumbers("1234"); masterMindTest.SolveAttempt("3164"); Assert.IsTrue(masterMindTest.LastAttemptResults() == "+--"); }
public void LastAttemptWrongPosition() { MasterMindGame masterMindTest = new MasterMindGame(6, 2); masterMindTest.SetCorrectNumbers("1234"); masterMindTest.SolveAttempt("4321"); Assert.IsTrue(masterMindTest.LastAttemptResults() == "----"); }