Esempio n. 1
0
        public void Find_FindsSilences_ForThreeSilencesLessEqualGreaterPointTwo()
        {
            // Arrange
            FfMpeg sut = CreateSut(ThreeSilencesLessEqualGreaterPointTwo);

            // Act
            sut.Find();

            // Assert
            Assert.Equal(2,
                         sut.Silences.Count());
        }
Esempio n. 2
0
        public void Find_FindFourthSilence_ForFourSilencesPointTwo()
        {
            // Arrange
            FfMpeg sut = CreateSut(FourSilencesPointTwo);

            // Act
            sut.Find();
            ISilence actual = sut.Silences.ToArray() [3];

            // Assert
            Assert.True(Math.Abs(31.1934f - actual.Start) < Tolerance);
        }
Esempio n. 3
0
        public void Find_FindsSilences_ForFourSilencesPointTwo()
        {
            // Arrange
            FfMpeg sut = CreateSut(FourSilencesPointTwo);

            // Act
            sut.Find();

            // Assert
            Assert.Equal(4,
                         sut.Silences.Count());
        }
Esempio n. 4
0
        public void Find_FindsSilenceWithCutTime_ForOneSilencePointTwo()
        {
            // Arrange
            FfMpeg sut = CreateSut(OneSilencePointTwo);

            sut.Find();

            // Act
            float actual = sut.Silences.First().CutTime;

            // Assert
            Assert.True(Math.Abs(1.66472f - actual) < Tolerance);
        }
Esempio n. 5
0
        public void Find_FindsSilenceWithDuration_ForOneSilencePointTwo()
        {
            // Arrange
            FfMpeg sut = CreateSut(OneSilencePointTwo);

            sut.Find();

            // Act
            float actual = sut.Silences.First().Duration;

            // Assert
            Assert.True(Math.Abs(0.2f - actual) < Tolerance);
        }