Permalink
Browse files

Fix test failure in RoutingState

  • Loading branch information...
1 parent 8d692c9 commit 2f2364df1b83fa366fc1ebd9f9afb2afd255771d @paulcbetts paulcbetts committed Feb 12, 2013
Showing with 6 additions and 1 deletion.
  1. +6 −1 ReactiveUI.Tests/RoutingState.cs
@@ -41,11 +41,16 @@ public void NavigationPushPopTest()
fixture.Navigate.Go<TestViewModel>();
Assert.Equal(1, fixture.NavigationStack.Count);
+ Assert.False(fixture.NavigateBack.CanExecute(null));
+
+ fixture.Navigate.Go<TestViewModel>();
+
+ Assert.Equal(2, fixture.NavigationStack.Count);
Assert.True(fixture.NavigateBack.CanExecute(null));
fixture.NavigateBack.Execute(null);
- Assert.Equal(0, fixture.NavigationStack.Count);
+ Assert.Equal(1, fixture.NavigationStack.Count);
}
}
}

0 comments on commit 2f2364d

Please sign in to comment.