Skip to content

Update Resharper #1742

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"isRoot": true,
"tools": {
"jetbrains.resharper.globaltools": {
"version": "2024.3.6",
"version": "2025.1.4",
"commands": [
"jb"
],
Expand Down Expand Up @@ -38,4 +38,4 @@
"rollForward": false
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,15 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>

response.Included.Should().HaveCount(2);

response.Included.OfType<DataInDataStreamResponse>().Should().ContainSingle(include => include.Id == existingVideoStream.StringId).Subject.With(
include =>
response.Included.OfType<DataInDataStreamResponse>().Should().ContainSingle(include => include.Id == existingVideoStream.StringId).Subject
.With(include =>
{
include.Attributes.Should().NotBeNull();
include.Attributes.BytesTransmitted.Should().Be((long?)existingVideoStream.BytesTransmitted);
});

response.Included.OfType<DataInDataStreamResponse>().Should().ContainSingle(include => include.Id == existingAudioStream.StringId).Subject.With(
include =>
response.Included.OfType<DataInDataStreamResponse>().Should().ContainSingle(include => include.Id == existingAudioStream.StringId).Subject
.With(include =>
{
include.Attributes.Should().NotBeNull();
include.Attributes.BytesTransmitted.Should().Be((long?)existingAudioStream.BytesTransmitted);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,15 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>

response.Included.Should().HaveCount(2);

response.Included.OfType<DataInDataStreamResponse>().Should().ContainSingle(include => include.Id == existingVideoStream.StringId).Subject.With(
include =>
response.Included.OfType<DataInDataStreamResponse>().Should().ContainSingle(include => include.Id == existingVideoStream.StringId).Subject
.With(include =>
{
include.Attributes.Should().NotBeNull();
include.Attributes.BytesTransmitted.Should().Be((long?)existingVideoStream.BytesTransmitted);
});

response.Included.OfType<DataInDataStreamResponse>().Should().ContainSingle(include => include.Id == existingAudioStream.StringId).Subject.With(
include =>
response.Included.OfType<DataInDataStreamResponse>().Should().ContainSingle(include => include.Id == existingAudioStream.StringId).Subject
.With(include =>
{
include.Attributes.Should().NotBeNull();
include.Attributes.BytesTransmitted.Should().Be((long?)existingAudioStream.BytesTransmitted);
Expand Down
4 changes: 2 additions & 2 deletions test/OpenApiTests/QueryStrings/QueryStringTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ public async Task Endpoints_have_query_string_parameter(string endpointPath)
{
verbElement.Should().ContainPath("parameters").With(parametersElement =>
{
parametersElement.EnumerateArray().Should().ContainSingle(element => element.GetProperty("in").ValueEquals("query")).Subject.With(
parameterElement =>
parametersElement.EnumerateArray().Should().ContainSingle(element => element.GetProperty("in").ValueEquals("query")).Subject
.With(parameterElement =>
{
parameterElement.Should().HaveProperty("name", "query");

Expand Down
2 changes: 1 addition & 1 deletion test/SourceGeneratorTests/ControllerGenerationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public sealed class Item : Identifiable<long>
{
private const JsonApiEndpoints NoRelationshipEndpoints = JsonApiEndpoints.GetCollection |
JsonApiEndpoints.GetSingle | JsonApiEndpoints.Post | JsonApiEndpoints.Patch | JsonApiEndpoints.Delete;

[Attr]
public int Value { get; set; }
}
Expand Down
Loading