public void RemovePackage_PackageRemovedSuccessfully_RepositoryUsedToCreateProject() { CreateViewModel(); viewModel.RemovePackage(); Assert.AreEqual(fakePackage.Repository, fakeSolution.RepositoryPassedToGetProject); }
public void RemovePackage_PackageRemovedSuccessfully_PropertyNotifyChangedFiredForIsAddedProperty() { CreateViewModel(); string propertyChangedName = null; viewModel.PropertyChanged += (sender, e) => propertyChangedName = e.PropertyName; viewModel.RemovePackage(); Assert.AreEqual("IsAdded", propertyChangedName); }