Skip to content

Commit

Permalink
Remove unused code (#1500)
Browse files Browse the repository at this point in the history
  • Loading branch information
costin-zaharia-sonarsource authored Mar 15, 2023
1 parent b405b60 commit 0ca7c56
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ namespace SonarScanner.MSBuild.PreProcessor.Test
internal class MockSonarWebService : ISonarWebService
{
private readonly List<string> calledMethods = new();
private readonly List<string> warnings = new();

public ServerDataModel Data { get; } = new();
public IList<SensorCacheEntry> Cache { get; set; }
Expand All @@ -55,12 +54,6 @@ public void AssertMethodCalled(string methodName, int callCount)
actualCalls.Should().Be(callCount, "Method was not called the expected number of times");
}

public void AssertWarningWritten(string warning) =>
warnings.Should().Contain(warning);

public void AssertNoWarningWritten() =>
warnings.Should().BeEmpty();

Task<bool> ISonarWebService.IsServerLicenseValid()
{
LogMethodCalled();
Expand Down

0 comments on commit 0ca7c56

Please sign in to comment.