public void testFactoryFailsForUnknownType()
        {
            AppDef   appDef   = new AppDef();
            AppState appState = new AppState();

            var f = new AppInitializedDetectorFactory();

            var d = f.create(appDef, appState, 0, XElement.Parse("<unknown>any-params</unknown>"));
        }
Пример #2
0
        public void testFactoryFailsForUnknownType()
        {
            AppDef appDef = new AppDef();
            AppState appState = new AppState();

            var f = new AppInitializedDetectorFactory();

            var d = f.create( appDef, appState, 0, XElement.Parse("<unknown>any-params</unknown>") );
        }
        public void testFactoryCreatesTimeOut()
        {
            AppDef   appDef   = new AppDef();
            AppState appState = new AppState();

            var f = new AppInitializedDetectorFactory();

            IAppInitializedDetector d = f.create(appDef, appState, 0, XElement.Parse("<timeout> 0.1</timeout>"));

            Assert.AreEqual(typeof(TimeOutInitDetector), d.GetType(), "correct detector type created");
        }
Пример #4
0
        public void testFactoryCreatesTimeOut()
        {
            AppDef appDef = new AppDef();
            AppState appState = new AppState();

            var f = new AppInitializedDetectorFactory();

            IAppInitializedDetector d = f.create( appDef, appState, 0, XElement.Parse("<timeout> 0.1</timeout>") );

            Assert.AreEqual(typeof(TimeOutInitDetector), d.GetType(), "correct detector type created");
        }