public void WriteAviFile_CompareToOrigin_NoDiffs() { // read wave file var readerFilePath = Path.Combine(TestContext.DeploymentDirectory, TestMedia.AviFileName); var reader = FileChunkReaderTests.CreateReader(readerFilePath, true); var rtObj = reader.ReadNextChunk(); var writerFilePath = Path.Combine(TestContext.DeploymentDirectory, Path.GetFileNameWithoutExtension(TestMedia.AviFileName) + "_out" + Path.GetExtension(TestMedia.AviFileName)); var writer = CreateWriter(writerFilePath); writer.WriteNextChunk(rtObj); // TODO: diff the files }
public void WriteAviFile_CompareToOrigin_NoDiffs() { // read wave file var readerFilePath = Path.Combine(TestContext.DeploymentDirectory, TestMedia.AviFileName); var reader = FileChunkReaderTests.CreateReader(readerFilePath, Endianness.LittleEndian); var rtObj = reader.ReadNextChunk(); var writerFilePath = Path.Combine(TestContext.DeploymentDirectory, Path.GetFileNameWithoutExtension(TestMedia.AviFileName) + "_out" + Path.GetExtension(TestMedia.AviFileName)); var writer = CreateWriter(writerFilePath); writer.WriteNextChunk(rtObj); writer.Dispose(); //CompareFiles(readerFilePath, writerFilePath).Should().BeTrue(); }