Skip to content

Commit 14b160e

Browse files
committed
Update to .NET 11 Preview 3
1 parent b6e24e6 commit 14b160e

3 files changed

Lines changed: 11 additions & 4 deletions

File tree

test/DiscoveryTests/ServiceDiscoveryFacadeTests.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,13 @@ public override DbContextOptions WithExtension<TExtension>(TExtension extension)
124124
{
125125
return this;
126126
}
127+
128+
#if NET11_0_OR_GREATER
129+
public override DbContextOptions WithoutExtension<TExtension>()
130+
{
131+
return this;
132+
}
133+
#endif
127134
}
128135
}
129136
}

test/OpenApiKiotaEndToEndTests/AttributeTypes/AttributeTypeTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,8 +500,8 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
500500
[InlineData(nameof(TypeContainer.TestNullableIPAddress), "An invalid IP address was specified.")]
501501
[InlineData(nameof(TypeContainer.TestIPNetwork), "An invalid IP network was specified.")]
502502
[InlineData(nameof(TypeContainer.TestNullableIPNetwork), "An invalid IP network was specified.")]
503-
[InlineData(nameof(TypeContainer.TestVersion), "The JSON value is not in a supported Version format.")]
504-
[InlineData(nameof(TypeContainer.TestNullableVersion), "The JSON value is not in a supported Version format.")]
503+
[InlineData(nameof(TypeContainer.TestVersion), "The JSON value could not be converted to System.Version.")]
504+
[InlineData(nameof(TypeContainer.TestNullableVersion), "The JSON value could not be converted to System.Version.")]
505505
public async Task Cannot_update_resource_with_attribute_set_to_invalid_value(string propertyName, string innerParseError)
506506
{
507507
// Arrange

test/OpenApiNSwagEndToEndTests/AttributeTypes/AttributeTypeTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,8 +493,8 @@ await _testContext.RunOnDatabaseAsync(async dbContext =>
493493
[InlineData(nameof(TypeContainer.TestNullableIPAddress), "An invalid IP address was specified.")]
494494
[InlineData(nameof(TypeContainer.TestIPNetwork), "An invalid IP network was specified.")]
495495
[InlineData(nameof(TypeContainer.TestNullableIPNetwork), "An invalid IP network was specified.")]
496-
[InlineData(nameof(TypeContainer.TestVersion), "The JSON value is not in a supported Version format.")]
497-
[InlineData(nameof(TypeContainer.TestNullableVersion), "The JSON value is not in a supported Version format.")]
496+
[InlineData(nameof(TypeContainer.TestVersion), "The JSON value could not be converted to System.Version.")]
497+
[InlineData(nameof(TypeContainer.TestNullableVersion), "The JSON value could not be converted to System.Version.")]
498498
public async Task Cannot_update_resource_with_attribute_set_to_invalid_value(string propertyName, string innerParseError)
499499
{
500500
// Arrange

0 commit comments

Comments
 (0)