Example #1
0
        public void CanGetCorrectDurationDetectorMP4__3()
        {
            // Arrange
            QuicktimeFileDurationDetector qtDetector = new QuicktimeFileDurationDetector();
            double actualDuration;
            double expectedDuration = 70d;

            // Act
            actualDuration = qtDetector.GetDurationInSeconds(@"C:\Oxigen2\Oxigen\tests\Oxigen.Tests\FileSystemResources\MovieDurationTests\MP4\MPEGSolution_jurassic.mp4");

            // Assert
            AssertWithThreshold(expectedDuration, actualDuration, TIME_THRESHOLD_SECONDS);
        }
Example #2
0
        public void CanGetCorrectQuicktimeDuration3()
        {
            // Arrange
            QuicktimeFileDurationDetector qtDetector = new QuicktimeFileDurationDetector();
            double actualDuration;
            double expectedDuration = 38d;

            // Act
            actualDuration = qtDetector.GetDurationInSeconds(@"C:\Oxigen2\Oxigen\tests\Oxigen.Tests\FileSystemResources\MovieDurationTests\MOV\Madrid_20110505_Hotshot.mov");

            // Assert
            AssertWithThreshold(expectedDuration, actualDuration, TIME_THRESHOLD_SECONDS);
        }