private static void AssertArgumentsProcessed(ProcessedArgs actualArgs, TestLogger logger, string expectedId, string expectedVersion, bool expectedAcceptLicenses) { actualArgs.Should().NotBeNull("Expecting the arguments to have been processed successfully"); expectedId.Should().Be(actualArgs.PackageId, "Unexpected package id returned"); if (expectedVersion == null) { actualArgs.PackageVersion.Should().BeNull("Expecting the version to be null"); } else { actualArgs.PackageVersion.Should().NotBeNull("Not expecting the version to be null"); actualArgs.PackageVersion.ToString().Should().Be(expectedVersion); } actualArgs.AcceptLicenses.Should().Be(expectedAcceptLicenses, "Unexpected value for AcceptLicenses"); logger.AssertErrorsLogged(0); }
public ISonarQubeServer CreateSonarQubeServer(ProcessedArgs args) { args.Should().NotBeNull(); return(this.server); }
private static void AssertArgumentsNotProcessed(ProcessedArgs actualArgs, TestLogger logger) { actualArgs.Should().BeNull("Not expecting the arguments to have been processed successfully"); logger.AssertErrorsLogged(); }