public void GetUserInputCallsWriteAndReadLine(string input, string expected) { _missionControl = new MissionControl(null, _mockUserIo); _mockUserIo.Stub(x => x.ReadLine()).Return(input); var actual = _missionControl.GetUserInput(); _mockUserIo.AssertWasCalled(x => x.Write(": ")); Assert.AreEqual(expected, actual); }