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 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"); }
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"); }