public void Find_FindsSilences_ForThreeSilencesLessEqualGreaterPointTwo() { // Arrange FfMpeg sut = CreateSut(ThreeSilencesLessEqualGreaterPointTwo); // Act sut.Find(); // Assert Assert.Equal(2, sut.Silences.Count()); }
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); }
public void Find_FindsSilences_ForFourSilencesPointTwo() { // Arrange FfMpeg sut = CreateSut(FourSilencesPointTwo); // Act sut.Find(); // Assert Assert.Equal(4, sut.Silences.Count()); }
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); }
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); }