public async Task SetsTheEmailFieldWhenInvalidCredentialsAreProvided() { arrangeCallToPasswordManagerWithInvalidCredentials(); var observer = TestScheduler.CreateObserver <string>(); ViewModel.Email.Subscribe(observer); await ViewModel.StartPasswordManager(); TestScheduler.Start(); observer.Messages.AssertEqual( ReactiveTest.OnNext(1, Email.Empty.ToString()), ReactiveTest.OnNext(2, InvalidEmail.ToString()) ); }