public void NonGaplessRecitersDoNotContainDatabase() { var reciter = new RecitersDatabaseHandler(); Assert.True(reciter.GetNonGaplessReciters().All(r => string.IsNullOrWhiteSpace(r.GaplessDatabasePath))); }
public void GaplessRecitersDatabaseEndWithDb() { var reciter = new RecitersDatabaseHandler(); Assert.True(reciter.GetGaplessReciters().All(r => r.GaplessDatabasePath.EndsWith(".db"))); }
public void RecitersDatabaseHandlerContainsReciters() { var reciter = new RecitersDatabaseHandler(); Assert.NotEmpty(reciter.GetAllReciters()); }
public void GetFileNameForNonGaplessAyahGetsCorrectName() { var database = new RecitersDatabaseHandler(); var reciter = database.GetNonGaplessReciters().First(r => r.LocalPath.Contains("Abd_Al-Basit")); var fileName = AudioUtils.GetLocalPathForAyah(new QuranAyah(2, 1), reciter); Assert.True(fileName.EndsWith("audio\\Abd_Al-Basit\\002001.mp3", StringComparison.Ordinal)); }
public void GetFileNameForGaplessAyahGetsCorrectName() { var database = new RecitersDatabaseHandler(); var reciter = database.GetGaplessReciters().First(r => r.LocalPath.Contains("Minshawi_Murattal_gapless")); var fileName = AudioUtils.GetLocalPathForAyah(new QuranAyah(2, 1), reciter); Assert.True(fileName.EndsWith("audio\\Minshawi_Murattal_gapless\\002.mp3", StringComparison.Ordinal)); }
public void GetFileNameForNonGaplessAyahGetsCorrectName() { var database = new RecitersDatabaseHandler(); var reciter = database.GetNonGaplessReciters().First(r => r.LocalPath.Contains("Abd_Al-Basit")); var fileName = AudioUtils.GetLocalPathForAyah(new QuranAyah(2, 1), reciter); Assert.Equal("quran_android/audio/Abd_Al-Basit/002001.mp3", fileName); }
public void GetFileNameForGaplessAyahGetsCorrectName() { var database = new RecitersDatabaseHandler(); var reciter = database.GetGaplessReciters().First(r => r.LocalPath.Contains("Minshawi_Murattal_gapless")); var fileName = AudioUtils.GetLocalPathForAyah(new QuranAyah(2, 1), reciter); Assert.Equal("quran_android/audio/Minshawi_Murattal_gapless/002.mp3", fileName); }