コード例 #1
0
        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
        }
コード例 #2
0
        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();
        }