Skip to content

Commit

Permalink
fixed unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gz committed May 27, 2010
1 parent df4c396 commit 5b72fd9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Tests/TestSerialization.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,12 @@ public void ChangeDone ()
Assert.That(singleManager.TaskLists[0].Tasks[0].Done);
Assert.That(!singleManager.TaskLists[0].Tasks[1].Done);

// we need to disable the searching for subtasks etc. because somehow this testcase magically
// crashes Monodevelop!
// most likely because its loading stuff in tomboy which is not working in simple unit tests with single
// note objects
singleManager.TaskLists.ForEach(tl => tl.Tasks.ForEach(t => t.SetAllVisitorPolicies(false, false, false, false)));

singleManager.TaskLists[0].Tasks[0].Done = false;
singleManager.TaskLists[0].Tasks[1].Done = true;
singleTaskListNote.Save();
Expand Down

0 comments on commit 5b72fd9

Please sign in to comment.