public void Start_with_keyA_on_and_turn_it_off() { _simKeys = new SimultaneousKeys(true, false, _time); ConstructSut(); Assert.AreEqual("Both keys off", _display.Line1, "Line 1"); Assert.AreEqual("to begin", _display.Line2, "Line 2"); AssertIndicators("K"); _sut.KeyOffEvent(KeySwitch.KeyA); Assert.AreEqual("Turn both keys", _display.Line1, "Line 1"); Assert.AreEqual("simultaneously", _display.Line2, "Line 2"); AssertIndicators("K"); }
public void BeforeEachTest() { _display = new CharDisplaySpy(); _indicators = new Mock <IIndicators>(); _config = new Mock <IConfigurationService>(); _net = new Mock <INetwork>(); _sound = new Mock <ISound>(); _time = new TimeServiceFake(new DateTime(2010, 01, 01)); _projSel = new ProjectSelector(_display, _config.Object); _simKeys = new SimultaneousKeys(false, false, _time); _webFactory = new Mock <IWebRequestFactory>(); _garbage = new Mock <IGarbage>(); _netio = new WebUtility(_garbage.Object); ConstructSut(); }
public void BeforeEachTest() { _time = new TimeServiceFake(); _sut = new SimultaneousKeys(false, false, _time); }