Exemplo n.º 1
0
        public void ReadTableTest()
        {
            var    station   = Station.Create();
            var    book      = new ExcelTexRead(station, _filename);
            string sheetname = "Лист1";

            string tablename = book.ReadTable(sheetname).Table.Name;

            StringAssert.Contains(tablename, "Расчет номинальных показателей турбоагрегата, группы турбоагрегатов");
        }
Exemplo n.º 2
0
        public void ReadValueProperties()
        {
            var    station   = Station.Create();
            var    book      = new ExcelTexRead(station, _filename);
            string sheetname = "Лист1";
            var    tamples   = book.ReadTamplates(book.ReadTable(sheetname), sheetname, TepOrManual.Tep);

            Station st = book.ReadSignals(tamples, sheetname, TepOrManual.Tep);

            StringAssert.Contains(st.ParameterValueses.First().Code, "$Э^к_i$");
            Assert.IsTrue(st.ParameterValueses.Count == 151);
        }
Exemplo n.º 3
0
        public void ReadTampleTest()
        {
            var    station   = Station.Create();
            var    book      = new ExcelTexRead(station, _filename);
            string sheetname = "Лист1";

            Dictionary <string, TampleBilder> tampleBilders = book.ReadTamplates(book.ReadTable(sheetname), sheetname, TepOrManual.Tep);


            Assert.IsTrue(tampleBilders.Count == 8);
            Assert.IsNotNull(tampleBilders["3"]);
            StringAssert.Contains(tampleBilders["3"].Tample.Type, "TEPTemplate");
        }