[longomatch/newui: 115/157] Fix tests
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch/newui: 115/157] Fix tests
- Date: Mon, 1 Sep 2014 09:51:02 +0000 (UTC)
commit 4848be6d98448161c368c4a132c8ffe20ae0be0e
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Wed Aug 27 16:37:45 2014 +0200
Fix tests
Tests/Core/TestPlaysFilter.cs | 8 ++++----
Tests/Core/TestProject.cs | 12 ++++++------
2 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/Tests/Core/TestPlaysFilter.cs b/Tests/Core/TestPlaysFilter.cs
index a20f6b1..143e890 100644
--- a/Tests/Core/TestPlaysFilter.cs
+++ b/Tests/Core/TestPlaysFilter.cs
@@ -60,7 +60,7 @@ namespace Tests.Core
Project p = CreateProject ();
PlaysFilter filter = new PlaysFilter (p);
- Assert.AreEqual (10, filter.VisibleCategories.Count);
+ Assert.AreEqual (17, filter.VisibleCategories.Count);
Assert.AreEqual (10, filter.VisiblePlayers.Count);
Assert.AreEqual (3, filter.VisiblePlays.Count);
}
@@ -96,7 +96,7 @@ namespace Tests.Core
Assert.AreEqual (1, filter.VisiblePlays.Count);
filter.FilterCategory (p.Categories.CategoriesList[2], false);
- Assert.AreEqual (10, filter.VisibleCategories.Count);
+ Assert.AreEqual (17, filter.VisibleCategories.Count);
Assert.AreEqual (3, filter.VisiblePlays.Count);
}
@@ -189,14 +189,14 @@ namespace Tests.Core
Assert.AreEqual (1, filter.VisibleCategories.Count);
filter.ClearCategoriesFilter ();
Assert.AreEqual (3, filter.VisiblePlays.Count);
- Assert.AreEqual (10, filter.VisibleCategories.Count);
+ Assert.AreEqual (17, filter.VisibleCategories.Count);
filter.FilterCategoryTag (p.Categories.CategoriesList[0],
p.Categories.CategoriesList[0].Tags[0], true);
Assert.AreEqual (0, filter.VisiblePlays.Count);
Assert.AreEqual (1, filter.VisibleCategories.Count);
filter.ClearAll ();
Assert.AreEqual (3, filter.VisiblePlays.Count);
- Assert.AreEqual (10, filter.VisibleCategories.Count);
+ Assert.AreEqual (17, filter.VisibleCategories.Count);
}
}
}
diff --git a/Tests/Core/TestProject.cs b/Tests/Core/TestProject.cs
index 1becd6a..d559062 100644
--- a/Tests/Core/TestProject.cs
+++ b/Tests/Core/TestProject.cs
@@ -72,22 +72,22 @@ namespace Tests.Core
p.AddPlay (p.Categories.CategoriesList[2], new Time (1000), new Time (2000), null);
p.AddPlay (p.Categories.CategoriesList[6], new Time (1000), new Time (2000), null);
- IEnumerable<IGrouping<AnalysisCategory, Play>> g = p.PlaysGroupedByCategory;
+ IEnumerable<IGrouping<TaggerButton, Play>> g = p.PlaysGroupedByCategory;
Assert.AreEqual (g.Count(), 4);
- IGrouping<Category, Play> gr = g.ElementAt (0);
- Assert.AreEqual (gr.Key, p.Categories.CategoriesList[0]);
+ IGrouping<TaggerButton, Play> gr = g.ElementAt (0);
+ Assert.AreEqual (gr.Key, p.Categories.List[0]);
Assert.AreEqual (gr.Count(), 2);
gr = g.ElementAt (1);
- Assert.AreEqual (gr.Key, p.Categories.CategoriesList[1]);
+ Assert.AreEqual (gr.Key, p.Categories.List[1]);
Assert.AreEqual (gr.Count(), 1);
gr = g.ElementAt (2);
- Assert.AreEqual (gr.Key, p.Categories.CategoriesList[2]);
+ Assert.AreEqual (gr.Key, p.Categories.List[2]);
Assert.AreEqual (gr.Count(), 3);
gr = g.ElementAt (3);
- Assert.AreEqual (gr.Key, p.Categories.CategoriesList[6]);
+ Assert.AreEqual (gr.Key, p.Categories.List[6]);
Assert.AreEqual (gr.Count(), 1);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]