//Проверка на возврат не пустого списка public void CheckListNotNull_TestFileLoader() { AppGlobalSettings.Initialize(); IParticipantListLoader loader = AppGlobalSettings.factory.CreateParticipantListLoader(); Assert.IsNotNull(loader.Execute()); }
static void Main() { AppGlobalSettings.Initialize(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new FrmMain()); }
public void Initialize() { spectralClasses = new SpectralClassRepository(); AppGlobalSettings.Initialize(); loader = CastleFactory.Container.Resolve <IRepositoryLoader>(); loader.FileName = AppGlobalSettings.DataFileName; loader.Execute(); spectralClasses.StarsList = loader.StarsList; }
////Проверка статуса на успешное чтение при ненулевой сылке на список public void CheckListWithStatusSuccess_TestFileLoader() { AppGlobalSettings.Initialize(); IParticipantListLoader loader = AppGlobalSettings.factory.CreateParticipantListLoader(); //Загрузка из файла loader.Execute(); if (loader.status == LoadStatus.Success && loader.Participants != null) { Assert.IsTrue(true); } else { Assert.IsTrue(false); } }
public void AppGlobalSettingsTest() { AppGlobalSettings.Initialize(); Assert.AreEqual(AppGlobalSettings.DataFileName, "Enterprise.txt"); }