public void ReadParameterValues() { var _station = Station.Create(); var app = new ReadWord("TestExcel.xlsx"); var assertparams = app.ReadParameterValues(_station, 0).ParameterValueses; StringAssert.Contains(assertparams.First().Code, "D^{1}_{пе}"); StringAssert.Contains(assertparams[5].Code, "O^{сп}_{2}"); }
public void AllOne() { var _station = Station.Create().TypeStation("Station").NameStation("НТЭЦ4"); var app = new ReadWord("TestExcel.xlsx"); app.ReadParameterValues(_station, 2); var station = app.ReadFormula(_station, 1); var write = new WriteXml(station, "Testxml.xml"); write.WriteXmlbySerealise(); Assert.IsTrue(File.Exists("Testxml.xml")); }
public void ReadParameterValuesNodes() { var _station = Station.Create(); var app = new ReadWord("TestExcel.xlsx"); var assertnodes = app.ReadParameterValues(_station, 0); StringAssert.Contains(assertnodes.Tables[0].Name, "Автоматизированные системы сбора и обработки данных по котлам"); StringAssert.Contains(assertnodes.Tables[0].Property[0].Value, "0"); StringAssert.Contains(assertnodes.Tables[0].Property[0].Name, "sortindex"); StringAssert.Contains(assertnodes.Tables[0].Tamples[0].Type, "ManualGate"); StringAssert.Contains(assertnodes.Tables[0].Tamples[0].Signals[0].Name, "Расход перегретого пара, 1 нитка"); }