public void CreateStrategyReturnsCorrectDefault() { ModuleFactory module_factory = new ModuleFactory(); IModuleStrategy returned_strat = module_factory.CreateStrategy((ModuleType)3); Assert.IsInstanceOf(typeof(BloodPressureStrategy), returned_strat); }
public void CreateStrategyReturnsOxygenLevel() { ModuleFactory module_factory = new ModuleFactory(); IModuleStrategy returned_strat = module_factory.CreateStrategy(ModuleType.OxygenLevel); Assert.IsInstanceOf(typeof(OxygenStrategy), returned_strat); }