public void ExecuteCorrectlyDeletesNugetPackage([Greedy] NugetPackageDeleter sut) { var actual = sut.Execute(); Assert.True(actual); sut.DeleteCommand.ToMock().Verify(x => x.Execute(sut), Times.Once()); }
public void ExecuteLogsCorrectMessage( [Greedy] NugetPackageDeleter sut) { sut.Execute(); sut.Logger.ToMock().Verify(x => x.Log( sut, It.Is <string>(p => p.Contains(sut.NugetId) && p.Contains(sut.NugetVersion)), MessageImportance.High)); }
public void NugetVersionIsReadWritable(NugetPackageDeleter sut, string nugetVersion) { sut.NugetVersion = nugetVersion; Assert.Equal(nugetVersion, sut.NugetVersion); }
public void NugetIdIsReadWritable(NugetPackageDeleter sut, string nugetId) { sut.NugetId = nugetId; Assert.Equal(nugetId, sut.NugetId); }
public void UserPasswordIsReadWritable(NugetPackageDeleter sut, string userPassword) { sut.UserPassword = userPassword; Assert.Equal(userPassword, sut.UserPassword); }
public void LoggerIsCorrect(NugetPackageDeleter sut) { Assert.IsAssignableFrom <TaskLogger>(sut.Logger); }
public void NugetPackageDeletionIsCorrect(NugetPackageDeleter sut) { Assert.IsAssignableFrom <DeletePackageCommand>(sut.DeleteCommand); }
public void SutIsTask(NugetPackageDeleter sut) { Assert.IsAssignableFrom <Task>(sut); }
public void SutIsNugetPackageDeletionInfo(NugetPackageDeleter sut) { Assert.IsAssignableFrom <INugetPackageInfo>(sut); }
public void NugetIdIsReadWritable(NugetPackageDeleter sut, string nugetId) { sut.NugetId = nugetId; Assert.Equal(nugetId, sut.NugetId); }
public void NugetVersionIsReadWritable(NugetPackageDeleter sut, string nugetVersion) { sut.NugetVersion = nugetVersion; Assert.Equal(nugetVersion, sut.NugetVersion); }
public void UserPasswordIsReadWritable(NugetPackageDeleter sut, string userPassword) { sut.UserPassword = userPassword; Assert.Equal(userPassword, sut.UserPassword); }
public void LoggerIsCorrect(NugetPackageDeleter sut) { Assert.IsAssignableFrom<TaskLogger>(sut.Logger); }
public void NugetPackageDeletionIsCorrect(NugetPackageDeleter sut) { Assert.IsAssignableFrom<DeletePackageCommand>(sut.DeleteCommand); }
public void SutIsTask(NugetPackageDeleter sut) { Assert.IsAssignableFrom<Task>(sut); }
public void SutIsNugetPackageDeletionInfo(NugetPackageDeleter sut) { Assert.IsAssignableFrom<INugetPackageInfo>(sut); }