public void RemoteReferencesAreFilled() { BaseballApp app = new BaseballApp(); app.Initialize(GetConfigurationManager()); app.AddChild(new IOInterfaceReference()); Assert.IsFalse(app.IsValid); Assert.AreEqual(1, app.References.Count()); }
public void AppIsValidWithScores() { Mock <IBaseballSensor> sensor = new Mock <IBaseballSensor>(); AddComponentToConfigurationManager(sensor.Object); BaseballApp app = new BaseballApp(); app.Initialize(GetConfigurationManager()); Assert.IsTrue(app.IsValid); Assert.AreEqual(String.Empty, app.InvalidMessage); }