public void SetAccessTokenAndUserInfo_ArgumentUriIsNotRedirectUrl_DoesNothing() { var wascalled = false; _viewModel.FinishInteraction = () => wascalled = true; _viewModel.SetAccessTokenAndUserInfo(new Uri("http://Does-not-start-with-Redirect-Url")); Assert.AreEqual(0, _dropboxService.ReceivedCalls().Count(), "Unwanted DropboxServive Calls"); Assert.IsFalse(wascalled, "Unwanted call of FinishInteraction"); }