示例#1
0
        public void RemoteReferencesAreFilled()
        {
            BaseballApp app = new BaseballApp();

            app.Initialize(GetConfigurationManager());
            app.AddChild(new IOInterfaceReference());
            Assert.IsFalse(app.IsValid);
            Assert.AreEqual(1, app.References.Count());
        }
示例#2
0
        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);
        }