From 53d838e880086d526c7a20b4069886ffe20ffb1b Mon Sep 17 00:00:00 2001 From: rlauu <46294892+rlauu@users.noreply.github.com> Date: Wed, 25 Sep 2024 18:50:41 +0200 Subject: [PATCH] Update TestAudioFingerprinting.cs --- .../TestAudioFingerprinting.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ConfusedPolarBear.Plugin.IntroSkipper.Tests/TestAudioFingerprinting.cs b/ConfusedPolarBear.Plugin.IntroSkipper.Tests/TestAudioFingerprinting.cs index fc458a1..9c34fcd 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper.Tests/TestAudioFingerprinting.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper.Tests/TestAudioFingerprinting.cs @@ -62,7 +62,7 @@ public class TestAudioFingerprinting }; var actual = FFmpegWrapper.Fingerprint( - queueEpisode("audio/big_buck_bunny_intro.mp3"), + QueueEpisode("audio/big_buck_bunny_intro.mp3"), AnalysisMode.Introduction); Assert.Equal(expected, actual); @@ -93,8 +93,8 @@ public class TestAudioFingerprinting { var chromaprint = CreateChromaprintAnalyzer(); - var lhsEpisode = queueEpisode("audio/big_buck_bunny_intro.mp3"); - var rhsEpisode = queueEpisode("audio/big_buck_bunny_clip.mp3"); + var lhsEpisode = QueueEpisode("audio/big_buck_bunny_intro.mp3"); + var rhsEpisode = QueueEpisode("audio/big_buck_bunny_clip.mp3"); var lhsFingerprint = FFmpegWrapper.Fingerprint(lhsEpisode, AnalysisMode.Introduction); var rhsFingerprint = FFmpegWrapper.Fingerprint(rhsEpisode, AnalysisMode.Introduction); @@ -120,7 +120,7 @@ public class TestAudioFingerprinting [FactSkipFFmpegTests] public void TestSilenceDetection() { - var clip = queueEpisode("audio/big_buck_bunny_clip.mp3"); + var clip = QueueEpisode("audio/big_buck_bunny_clip.mp3"); var expected = new TimeRange[] { @@ -138,7 +138,7 @@ public class TestAudioFingerprinting Assert.Equal(expected, actual); } - private QueuedEpisode queueEpisode(string path) + private static QueuedEpisode QueueEpisode(string path) { return new QueuedEpisode() { @@ -148,7 +148,7 @@ public class TestAudioFingerprinting }; } - private ChromaprintAnalyzer CreateChromaprintAnalyzer() + private static ChromaprintAnalyzer CreateChromaprintAnalyzer() { var logger = new LoggerFactory().CreateLogger(); return new(logger);