Created
May 9, 2014 04:29
-
-
Save dschenkelman/b476d386055a42b3b637 to your computer and use it in GitHub Desktop.
fakewin8: Easy fakes for Windows Store apps unit tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// arrange | |
this.fakeNavigationService.NavigateAction = FakeMethod.CreateFor<string>(view => { }); | |
// act | |
// assert | |
Assert.AreEqual(1, this.fakeNavigationService.NavigateAction.NumberOfInvocations); | |
Assert.AreEqual("ViewName", this.fakeNavigationService.NavigateAction.Invocations.ElementAt(0).FirstParameter); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment