Skip to content

Commit

Permalink
Resharper code issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Vivet committed May 13, 2024
1 parent ddb2ac8 commit 002078a
Show file tree
Hide file tree
Showing 121 changed files with 3,379 additions and 967 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
_ReSharper*
**/bin
**/obj
*.DotSettings
*.DotSettings.User
packages
.vs
project.lock.json
Expand Down
2 changes: 0 additions & 2 deletions .tests/GoogleApi.Test/Functions/FunctionsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ public void DecodePolyLineTest()
Assert.AreEqual(decodePolyLine[0].ToString(), location1.ToString());
Assert.AreEqual(decodePolyLine[1].ToString(), location2.ToString());
Assert.AreEqual(decodePolyLine[2].ToString(), location3.ToString());


}

[Test]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public async Task DistanceMatrixWhenTravelModeWalking()
{
new LocationEx(destination)
},
TravelMode = TravelMode.DRIVING,
TravelMode = TravelMode.DRIVING
};
var drivingResponse = await GoogleMaps.DistanceMatrix.QueryAsync(drivingRequest);

Expand All @@ -274,7 +274,7 @@ public async Task DistanceMatrixWhenTravelModeWalking()
{
new LocationEx(destination)
},
TravelMode = TravelMode.WALKING,
TravelMode = TravelMode.WALKING
};
var walkingResponse = await GoogleMaps.DistanceMatrix.QueryAsync(walkingRequest);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public async Task LocationGeocodeTest()
var request = new LocationGeocodeRequest
{
Key = this.Settings.ApiKey,
Location = new Coordinate(38.1864717,-109.9743631)
Location = new Coordinate(38.1864717, -109.9743631)
};

var response = await GoogleMaps.Geocode.LocationGeocode.QueryAsync(request);
Expand Down
4 changes: 2 additions & 2 deletions .tests/GoogleApi.Test/Maps/Geolocation/GeolocationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ public async Task GeolocationWhenConsiderIpTest()

[Test]
[Ignore("No valid example for Cell Towers.")]
public async Task GeolocationWhenCellTowersTest()
public Task GeolocationWhenCellTowersTest()
{
await Task.CompletedTask;
return Task.CompletedTask;
}

[Test]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public async Task RouteDirectionsTest()
Destination = new RouteWayPoint
{
Location = new RouteLocation { LatLng = new LatLng { Latitude = 55.692241, Longitude = 12.538547 } }
},
}
};

var result = await GoogleMaps.Routes.RouteDirections.QueryAsync(request);
Expand Down Expand Up @@ -137,7 +137,7 @@ public async Task RouteDirectionsWhenGeoJsonLinestringTest()
{
Location = new RouteLocation { LatLng = new LatLng { Latitude = 37.417670, Longitude = -122.079595 } }
},
PolylineEncoding = PolylineEncoding.GeoJsonLinestring,
PolylineEncoding = PolylineEncoding.GeoJsonLinestring
};

var result = await GoogleMaps.Routes.RouteDirections.QueryAsync(request);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ public async Task PlacesAutoCompleteWhenLocationTypesGeocodeAndEstablishmentTest
{
Key = this.Settings.ApiKey,
Input = "Denmark",
LocationTypes = new []
LocationTypes = new[]
{
PlaceLocationType.Cafe,
PlaceLocationType.Book_Store
Expand Down
16 changes: 8 additions & 8 deletions .tests/GoogleApi.Test/Search/Image/ImageSearchTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,30 +52,30 @@ public async Task ImageSearchTest()

[Test]
[Ignore("Inconclusive")]
public async Task ImageSearchWhenImageTypeTest()
public Task ImageSearchWhenImageTypeTest()
{
await Task.CompletedTask;
return Task.CompletedTask;
}

[Test]
[Ignore("Inconclusive")]
public async Task ImageSearchWhenImageSizeTest()
public Task ImageSearchWhenImageSizeTest()
{
await Task.CompletedTask;
return Task.CompletedTask;
}

[Test]
[Ignore("Inconclusive")]
public async Task ImageSearchWhenImageColorTypeTest()
public Task ImageSearchWhenImageColorTypeTest()
{
await Task.CompletedTask;
return Task.CompletedTask;
}

[Test]
[Ignore("Inconclusive")]
public async Task ImageSearchWhenImageDominantColorTest()
public Task ImageSearchWhenImageDominantColorTest()
{
await Task.CompletedTask;
return Task.CompletedTask;
}

[Test]
Expand Down
62 changes: 31 additions & 31 deletions .tests/GoogleApi.Test/Search/Web/WebSearchTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,23 +158,23 @@ public async Task WebSearchWhenFieldsTest()

[Test]
[Ignore("Inconclusive")]
public async Task WebSearchWhenPrettyPrintTest()
public Task WebSearchWhenPrettyPrintTest()
{
await Task.CompletedTask;
return Task.CompletedTask;
}

[Test]
[Ignore("Inconclusive")]
public async Task WebSearchWhenUserIpTest()
public Task WebSearchWhenUserIpTest()
{
await Task.CompletedTask;
return Task.CompletedTask;
}

[Test]
[Ignore("Inconclusive")]
public async Task WebSearchWhenQuotaUserTest()
public Task WebSearchWhenQuotaUserTest()
{
await Task.CompletedTask;
return Task.CompletedTask;
}

[Test]
Expand Down Expand Up @@ -218,7 +218,7 @@ public async Task WebSearchWhenCountryRestrictionTest()
{
Expressions = new List<CountryRestrictExpression>
{
new() { Country = Country.Denmark},
new() { Country = Country.Denmark },
new() { Country = Country.Italy }
}
}
Expand Down Expand Up @@ -272,16 +272,16 @@ public async Task WebSearchWhenDateRestrictTest()

[Test]
[Ignore("Inconclusive")]
public async Task WebSearchWhenExactTermsTest()
public Task WebSearchWhenExactTermsTest()
{
await Task.CompletedTask;
return Task.CompletedTask;
}

[Test]
[Ignore("Inconclusive")]
public async Task WebSearchWhenExcludeTermsTest()
public Task WebSearchWhenExcludeTermsTest()
{
await Task.CompletedTask;
return Task.CompletedTask;
}

[Test]
Expand Down Expand Up @@ -321,9 +321,9 @@ public async Task WebSearchWhenFileTypesTest()

[Test]
[Ignore("Inconclusive")]
public async Task WebSearchWhenFilterTest()
public Task WebSearchWhenFilterTest()
{
await Task.CompletedTask;
return Task.CompletedTask;
}

[Test]
Expand Down Expand Up @@ -355,16 +355,16 @@ public async Task WebSearchWhenGeoLocationTest()

[Test]
[Ignore("Inconclusive")]
public async Task WebSearchWhenGooglehostTest()
public Task WebSearchWhenGooglehostTest()
{
await Task.CompletedTask;
return Task.CompletedTask;
}

[Test]
[Ignore("Inconclusive")]
public async Task WebSearchWhenHighRangeTest()
public Task WebSearchWhenHighRangeTest()
{
await Task.CompletedTask;
return Task.CompletedTask;
}

[Test]
Expand Down Expand Up @@ -396,23 +396,23 @@ public async Task WebSearchWhenInterfaceLanguageTest()

[Test]
[Ignore("Inconclusive")]
public async Task WebSearchWhenAndTermsTest()
public Task WebSearchWhenAndTermsTest()
{
await Task.CompletedTask;
return Task.CompletedTask;
}

[Test]
[Ignore("Inconclusive")]
public async Task WebSearchWhenLinkSiteTest()
public Task WebSearchWhenLinkSiteTest()
{
await Task.CompletedTask;
return Task.CompletedTask;
}

[Test]
[Ignore("Inconclusive")]
public async Task WebSearchWhenLowRangeTest()
public Task WebSearchWhenLowRangeTest()
{
await Task.CompletedTask;
return Task.CompletedTask;
}

[Test]
Expand Down Expand Up @@ -444,30 +444,30 @@ public async Task WebSearchWhenNumberTest()

[Test]
[Ignore("Inconclusive")]
public async Task WebSearchWhenOrTermsTest()
public Task WebSearchWhenOrTermsTest()
{
await Task.CompletedTask;
return Task.CompletedTask;
}

[Test]
[Ignore("Inconclusive")]
public async Task WebSearchWhenRelatedSiteTest()
public Task WebSearchWhenRelatedSiteTest()
{
await Task.CompletedTask;
return Task.CompletedTask;
}

[Test]
[Ignore("Inconclusive")]
public async Task WebSearchWhenRightsTest()
public Task WebSearchWhenRightsTest()
{
await Task.CompletedTask;
return Task.CompletedTask;
}

[Test]
[Ignore("Inconclusive")]
public async Task WebSearchWhenSafetyLevelTest()
public Task WebSearchWhenSafetyLevelTest()
{
await Task.CompletedTask;
return Task.CompletedTask;
}

[Test]
Expand Down
Loading

0 comments on commit 002078a

Please sign in to comment.