public void RemovePackage_PackageRemovedSuccessfully_RepositoryUsedToCreateProject()
        {
            CreateViewModel();
            viewModel.RemovePackage();

            Assert.AreEqual(fakePackage.Repository, fakeSolution.RepositoryPassedToGetProject);
        }
Ejemplo n.º 2
0
        public void RemovePackage_PackageRemovedSuccessfully_PropertyNotifyChangedFiredForIsAddedProperty()
        {
            CreateViewModel();
            string propertyChangedName = null;

            viewModel.PropertyChanged += (sender, e) => propertyChangedName = e.PropertyName;
            viewModel.RemovePackage();

            Assert.AreEqual("IsAdded", propertyChangedName);
        }