Example #1
0
        public void TestMethod_GetString()
        {
            IParser newStr = CoreParser.CreateInstance().ParseTxt(Path);

            OneRowTxt[] result = newStr.GetValueInTxtFile();
            Assert.AreEqual(result.Length, 161);
        }
Example #2
0
        private App([NotNull] Window window)
        {
            Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);

            try
            {
                Window mainWindow = window ?? throw new ArgumentException(nameof(App));
                ShowWindow(mainWindow);
            }
            catch (Exception ex)
            {
                Logger.Logger.Error(ex, nameof(App), "Constructor");
            }

            //Создание ядра для парсера
            CoreParser.CreateInstance();

            //Создание конфига
            _ = Config.Config.Config.Con;
        }
Example #3
0
 public UnitTestParserTxt()
 {
     Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
     CoreParser.CreateInstance();
 }