public void ReadThermalFile() { // Arrage string path = @"D:\ThermalDetection\ThermalDetection\ThermalData\temp223.tof"; // Act IThermalReader thermalFileReader = new MockReader(); ThermalFile thermalFile = thermalFileReader.Read(path); // Assert int imagesCount = thermalFile.images.Count; Assert.AreNotEqual(0, imagesCount); }
public void DoesNotReportLineInfoIfNotSupported() { XmlDocument doc = new XmlDocument(); doc.Load("machine.config"); WrappingXmlReader reader = new MockReader(new XmlNodeReader(doc.DocumentElement)); reader.MoveToContent(); reader.Read(); Assert.AreEqual(0, reader.LineNumber); Assert.AreEqual(0, reader.LinePosition); Assert.AreEqual(false, reader.HasLineInfo()); }
public void CheckImagesCountInFile() { // Arrage int quantity = 10; string path = @"D:\ThermalDetection\ThermalDetection\ThermalData\temp223.tof"; IThermalReader thermalFileReader = new MockReader(); int imagecount = 0; // Act for (int i = 0; i < quantity; i++) { ThermalFile thermalFile = thermalFileReader.Read(path); imagecount = thermalFile.images.Count; } // Assert Assert.AreNotEqual(0, imagecount); }