public void TestProjectIdReset() { _objectUnderTest.Frame = _frameMock.Object; ILogsViewerViewModel oldViewModel = _objectUnderTest.ViewModel; CredentialStoreMock.Raise(cs => cs.Reset += null, CredentialsStore.Default, null); Assert.AreNotEqual(oldViewModel, _objectUnderTest.ViewModel); }
public void TestCloseDisablesProjectIdReset() { _objectUnderTest.Frame = _frameMock.Object; ILogsViewerViewModel oldViewModel = _objectUnderTest.ViewModel; ((IVsWindowPane)_objectUnderTest).ClosePane(); CredentialStoreMock.Raise(cs => cs.Reset += null, CredentialsStore.Default, null); Assert.AreEqual(oldViewModel, _objectUnderTest.ViewModel); }