public void BeforeEachTest() { _ledA = new IndictatorSpy(); _ledB = new IndictatorSpy(); _ledProject = new IndictatorSpy(); _ledArm = new IndictatorSpy(); _ledFire = new IndictatorSpy(); _ledDeploying = new IndictatorSpy(); _ledSucceeded = new IndictatorSpy(); _ledFailed = new IndictatorSpy(); _sut = new Indicators( _ledA, _ledB, _ledProject, _ledArm, _ledFire, _ledDeploying, _ledSucceeded, _ledFailed); }
private static void AssertOne(IndictatorSpy led, string visual, string key, string name) { if (visual.Contains(key)) Assert.IsTrue(led.Active, name + " should be lit"); else Assert.IsFalse(led.Active, name + " should be dark"); }