Esempio n. 1
0
 public void NonGaplessRecitersDoNotContainDatabase()
 {
     var reciter = new RecitersDatabaseHandler();
     Assert.True(reciter.GetNonGaplessReciters().All(r => string.IsNullOrWhiteSpace(r.GaplessDatabasePath)));
 }
Esempio n. 2
0
 public void GaplessRecitersDatabaseEndWithDb()
 {
     var reciter = new RecitersDatabaseHandler();
     Assert.True(reciter.GetGaplessReciters().All(r => r.GaplessDatabasePath.EndsWith(".db")));
 }
Esempio n. 3
0
 public void RecitersDatabaseHandlerContainsReciters()
 {
     var reciter = new RecitersDatabaseHandler();
     Assert.NotEmpty(reciter.GetAllReciters());
 }
Esempio n. 4
0
 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));
 }
Esempio n. 5
0
 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));
 }
Esempio n. 6
0
 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);
 }
Esempio n. 7
0
 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);
 }