[banshee] Banshee.Services: really sort alphabetically some tests
- From: AndrÃs Aragoneses <aaragoneses src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] Banshee.Services: really sort alphabetically some tests
- Date: Mon, 12 Sep 2011 22:33:24 +0000 (UTC)
commit 6a38ceb8b03a465731199f0f8d283ce25fc9a535
Author: AndrÃs G. Aragoneses <knocte gmail com>
Date: Mon Sep 12 23:29:11 2011 +0100
Banshee.Services: really sort alphabetically some tests
.../Banshee.Query/Tests/BansheeQueryTests.cs | 161 ++++++++++----------
1 files changed, 80 insertions(+), 81 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.Query/Tests/BansheeQueryTests.cs b/src/Core/Banshee.Services/Banshee.Query/Tests/BansheeQueryTests.cs
index e4a9cad..5346db5 100644
--- a/src/Core/Banshee.Services/Banshee.Query/Tests/BansheeQueryTests.cs
+++ b/src/Core/Banshee.Services/Banshee.Query/Tests/BansheeQueryTests.cs
@@ -632,10 +632,24 @@ namespace Banshee.Query.Tests
}
[Test]
- public void GetSortForSkipCountAsc ()
+ public void GetSortForRandomAsc ()
{
- string sort = BansheeQuery.GetSort ("SkipCount", true);
- AssertAreEquivalent (@"CoreTracks.SkipCount ASC,
+ string sort = FullTrim (BansheeQuery.GetSort ("Random", true));
+ AssertAreEquivalent ("RANDOM ()", sort);
+ }
+
+ [Test]
+ public void GetSortForRandomDesc ()
+ {
+ string sort = FullTrim (BansheeQuery.GetSort ("Random", false));
+ AssertAreEquivalent ("RANDOM ()", sort);
+ }
+
+ [Test]
+ public void GetSortForRatingAsc ()
+ {
+ string sort = BansheeQuery.GetSort ("Rating", true);
+ AssertAreEquivalent (@"CoreTracks.Rating ASC,
CoreAlbums.ArtistNameSortKey ASC,
CoreAlbums.TitleSortKey ASC,
CoreTracks.Disc ASC,
@@ -644,10 +658,10 @@ namespace Banshee.Query.Tests
}
[Test]
- public void GetSortForSkipCountDesc ()
+ public void GetSortForRatingDesc ()
{
- string sort = BansheeQuery.GetSort ("SkipCount", false);
- AssertAreEquivalent (@"CoreTracks.SkipCount DESC,
+ string sort = BansheeQuery.GetSort ("Rating", false);
+ AssertAreEquivalent (@"CoreTracks.Rating DESC,
CoreAlbums.ArtistNameSortKey ASC,
CoreAlbums.TitleSortKey ASC,
CoreTracks.Disc ASC,
@@ -656,11 +670,10 @@ namespace Banshee.Query.Tests
}
[Test]
- public void GetSortForScoreAsc ()
+ public void GetSortForSampleRateAsc ()
{
- string sort = BansheeQuery.GetSort ("Score", true);
- AssertAreEquivalent (@"CoreTracks.Score ASC,
- CoreTracks.Playcount ASC,
+ string sort = BansheeQuery.GetSort ("SampleRate", true);
+ AssertAreEquivalent (@"CoreTracks.SampleRate ASC,
CoreAlbums.ArtistNameSortKey ASC,
CoreAlbums.TitleSortKey ASC,
CoreTracks.Disc ASC,
@@ -669,11 +682,10 @@ namespace Banshee.Query.Tests
}
[Test]
- public void GetSortForScoreDesc ()
+ public void GetSortForSampleRateDesc ()
{
- string sort = BansheeQuery.GetSort ("Score", false);
- AssertAreEquivalent (@"CoreTracks.Score DESC,
- CoreTracks.Playcount DESC,
+ string sort = BansheeQuery.GetSort ("SampleRate", false);
+ AssertAreEquivalent (@"CoreTracks.SampleRate DESC,
CoreAlbums.ArtistNameSortKey ASC,
CoreAlbums.TitleSortKey ASC,
CoreTracks.Disc ASC,
@@ -681,25 +693,13 @@ namespace Banshee.Query.Tests
sort);
}
- [Test]
- public void GetSortForRandomAsc ()
- {
- string sort = FullTrim (BansheeQuery.GetSort ("Random", true));
- AssertAreEquivalent ("RANDOM ()", sort);
- }
-
- [Test]
- public void GetSortForRandomDesc ()
- {
- string sort = FullTrim (BansheeQuery.GetSort ("Random", false));
- AssertAreEquivalent ("RANDOM ()", sort);
- }
[Test]
- public void GetSortForRatingAsc ()
+ public void GetSortForScoreAsc ()
{
- string sort = BansheeQuery.GetSort ("Rating", true);
- AssertAreEquivalent (@"CoreTracks.Rating ASC,
+ string sort = BansheeQuery.GetSort ("Score", true);
+ AssertAreEquivalent (@"CoreTracks.Score ASC,
+ CoreTracks.Playcount ASC,
CoreAlbums.ArtistNameSortKey ASC,
CoreAlbums.TitleSortKey ASC,
CoreTracks.Disc ASC,
@@ -708,10 +708,11 @@ namespace Banshee.Query.Tests
}
[Test]
- public void GetSortForRatingDesc ()
+ public void GetSortForScoreDesc ()
{
- string sort = BansheeQuery.GetSort ("Rating", false);
- AssertAreEquivalent (@"CoreTracks.Rating DESC,
+ string sort = BansheeQuery.GetSort ("Score", false);
+ AssertAreEquivalent (@"CoreTracks.Score DESC,
+ CoreTracks.Playcount DESC,
CoreAlbums.ArtistNameSortKey ASC,
CoreAlbums.TitleSortKey ASC,
CoreTracks.Disc ASC,
@@ -720,10 +721,10 @@ namespace Banshee.Query.Tests
}
[Test]
- public void GetSortForSampleRateAsc ()
+ public void GetSortForSkipCountAsc ()
{
- string sort = BansheeQuery.GetSort ("SampleRate", true);
- AssertAreEquivalent (@"CoreTracks.SampleRate ASC,
+ string sort = BansheeQuery.GetSort ("SkipCount", true);
+ AssertAreEquivalent (@"CoreTracks.SkipCount ASC,
CoreAlbums.ArtistNameSortKey ASC,
CoreAlbums.TitleSortKey ASC,
CoreTracks.Disc ASC,
@@ -732,10 +733,10 @@ namespace Banshee.Query.Tests
}
[Test]
- public void GetSortForSampleRateDesc ()
+ public void GetSortForSkipCountDesc ()
{
- string sort = BansheeQuery.GetSort ("SampleRate", false);
- AssertAreEquivalent (@"CoreTracks.SampleRate DESC,
+ string sort = BansheeQuery.GetSort ("SkipCount", false);
+ AssertAreEquivalent (@"CoreTracks.SkipCount DESC,
CoreAlbums.ArtistNameSortKey ASC,
CoreAlbums.TitleSortKey ASC,
CoreTracks.Disc ASC,
@@ -743,7 +744,6 @@ namespace Banshee.Query.Tests
sort);
}
-
[Test]
public void GetSortForTitleAsc ()
{
@@ -1501,10 +1501,24 @@ namespace Banshee.Query.Tests
}
[Test]
- public void GetSortForSkipCountAsc ()
+ public void GetSortForRandomAsc ()
{
- string sort = BansheeQuery.GetSort ("SkipCount", true);
- AssertAreEquivalent (@"CoreTracks.SkipCount ASC,
+ string sort = FullTrim (BansheeQuery.GetSort ("Random", true));
+ AssertAreEquivalent ("RANDOM ()", sort);
+ }
+
+ [Test]
+ public void GetSortForRandomDesc ()
+ {
+ string sort = FullTrim (BansheeQuery.GetSort ("Random", false));
+ AssertAreEquivalent ("RANDOM ()", sort);
+ }
+
+ [Test]
+ public void GetSortForRatingAsc ()
+ {
+ string sort = BansheeQuery.GetSort ("Rating", true);
+ AssertAreEquivalent (@"CoreTracks.Rating ASC,
CoreAlbums.ArtistNameSortKey ASC,
CoreTracks.Year ASC,
CoreAlbums.TitleSortKey ASC,
@@ -1514,10 +1528,10 @@ namespace Banshee.Query.Tests
}
[Test]
- public void GetSortForSkipCountDesc ()
+ public void GetSortForRatingDesc ()
{
- string sort = BansheeQuery.GetSort ("SkipCount", false);
- AssertAreEquivalent (@"CoreTracks.SkipCount DESC,
+ string sort = BansheeQuery.GetSort ("Rating", false);
+ AssertAreEquivalent (@"CoreTracks.Rating DESC,
CoreAlbums.ArtistNameSortKey ASC,
CoreTracks.Year ASC,
CoreAlbums.TitleSortKey ASC,
@@ -1527,11 +1541,10 @@ namespace Banshee.Query.Tests
}
[Test]
- public void GetSortForScoreAsc ()
+ public void GetSortForSampleRateAsc ()
{
- string sort = BansheeQuery.GetSort ("Score", true);
- AssertAreEquivalent (@"CoreTracks.Score ASC,
- CoreTracks.Playcount ASC,
+ string sort = BansheeQuery.GetSort ("SampleRate", true);
+ AssertAreEquivalent (@"CoreTracks.SampleRate ASC,
CoreAlbums.ArtistNameSortKey ASC,
CoreTracks.Year ASC,
CoreAlbums.TitleSortKey ASC,
@@ -1541,11 +1554,10 @@ namespace Banshee.Query.Tests
}
[Test]
- public void GetSortForScoreDesc ()
+ public void GetSortForSampleRateDesc ()
{
- string sort = BansheeQuery.GetSort ("Score", false);
- AssertAreEquivalent (@"CoreTracks.Score DESC,
- CoreTracks.Playcount DESC,
+ string sort = BansheeQuery.GetSort ("SampleRate", false);
+ AssertAreEquivalent (@"CoreTracks.SampleRate DESC,
CoreAlbums.ArtistNameSortKey ASC,
CoreTracks.Year ASC,
CoreAlbums.TitleSortKey ASC,
@@ -1555,24 +1567,11 @@ namespace Banshee.Query.Tests
}
[Test]
- public void GetSortForRandomAsc ()
- {
- string sort = FullTrim (BansheeQuery.GetSort ("Random", true));
- AssertAreEquivalent ("RANDOM ()", sort);
- }
-
- [Test]
- public void GetSortForRandomDesc ()
- {
- string sort = FullTrim (BansheeQuery.GetSort ("Random", false));
- AssertAreEquivalent ("RANDOM ()", sort);
- }
-
- [Test]
- public void GetSortForRatingAsc ()
+ public void GetSortForScoreAsc ()
{
- string sort = BansheeQuery.GetSort ("Rating", true);
- AssertAreEquivalent (@"CoreTracks.Rating ASC,
+ string sort = BansheeQuery.GetSort ("Score", true);
+ AssertAreEquivalent (@"CoreTracks.Score ASC,
+ CoreTracks.Playcount ASC,
CoreAlbums.ArtistNameSortKey ASC,
CoreTracks.Year ASC,
CoreAlbums.TitleSortKey ASC,
@@ -1582,10 +1581,11 @@ namespace Banshee.Query.Tests
}
[Test]
- public void GetSortForRatingDesc ()
+ public void GetSortForScoreDesc ()
{
- string sort = BansheeQuery.GetSort ("Rating", false);
- AssertAreEquivalent (@"CoreTracks.Rating DESC,
+ string sort = BansheeQuery.GetSort ("Score", false);
+ AssertAreEquivalent (@"CoreTracks.Score DESC,
+ CoreTracks.Playcount DESC,
CoreAlbums.ArtistNameSortKey ASC,
CoreTracks.Year ASC,
CoreAlbums.TitleSortKey ASC,
@@ -1595,10 +1595,10 @@ namespace Banshee.Query.Tests
}
[Test]
- public void GetSortForSampleRateAsc ()
+ public void GetSortForSkipCountAsc ()
{
- string sort = BansheeQuery.GetSort ("SampleRate", true);
- AssertAreEquivalent (@"CoreTracks.SampleRate ASC,
+ string sort = BansheeQuery.GetSort ("SkipCount", true);
+ AssertAreEquivalent (@"CoreTracks.SkipCount ASC,
CoreAlbums.ArtistNameSortKey ASC,
CoreTracks.Year ASC,
CoreAlbums.TitleSortKey ASC,
@@ -1608,10 +1608,10 @@ namespace Banshee.Query.Tests
}
[Test]
- public void GetSortForSampleRateDesc ()
+ public void GetSortForSkipCountDesc ()
{
- string sort = BansheeQuery.GetSort ("SampleRate", false);
- AssertAreEquivalent (@"CoreTracks.SampleRate DESC,
+ string sort = BansheeQuery.GetSort ("SkipCount", false);
+ AssertAreEquivalent (@"CoreTracks.SkipCount DESC,
CoreAlbums.ArtistNameSortKey ASC,
CoreTracks.Year ASC,
CoreAlbums.TitleSortKey ASC,
@@ -1620,7 +1620,6 @@ namespace Banshee.Query.Tests
sort);
}
-
[Test]
public void GetSortForTitleAsc ()
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]