Skip to content

Commit 86d086d

Browse files
committed
fix failing tests
1 parent c2156bc commit 86d086d

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

src/libraries/Microsoft.Extensions.Configuration.Binder/tests/SourceGenerationTests/Baselines/net462/ConfigurationBinder/Bind.generated.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ namespace Microsoft.Extensions.Configuration.Binder.SourceGeneration
137137

138138
if (configuration["MyInt"] is string value1)
139139
{
140-
instance.MyInt = ParseInt(value1, () => configuration.GetSection("MyInt").Path);
140+
instance.MyInt = ParseInt(value1, configuration.GetSection("MyInt").Path);
141141
}
142142
else if (defaultValueIfNotFound)
143143
{

src/libraries/Microsoft.Extensions.Configuration.Binder/tests/SourceGenerationTests/Baselines/net462/ConfigurationBinder/Bind_Key_Instance.generated.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ namespace Microsoft.Extensions.Configuration.Binder.SourceGeneration
6262
{
6363
if (section.Value is string value)
6464
{
65-
instance.Add(ParseInt(value, () => section.Path));
65+
instance.Add(ParseInt(value, section.Path));
6666
}
6767
}
6868
}

src/libraries/Microsoft.Extensions.Configuration.Binder/tests/SourceGenerationTests/Baselines/net462/ConfigurationBinder/Get.generated.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ namespace Microsoft.Extensions.Configuration.Binder.SourceGeneration
135135

136136
if (configuration["MyInt"] is string value4)
137137
{
138-
instance.MyInt = ParseInt(value4, () => configuration.GetSection("MyInt").Path);
138+
instance.MyInt = ParseInt(value4, configuration.GetSection("MyInt").Path);
139139
}
140140
else if (defaultValueIfNotFound)
141141
{

src/libraries/Microsoft.Extensions.Configuration.Binder/tests/SourceGenerationTests/Baselines/net462/OptionsBuilder/Bind_T_BinderOptions.generated.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ namespace Microsoft.Extensions.Configuration.Binder.SourceGeneration
103103
{
104104
if (section.Value is string value)
105105
{
106-
instance.Add(ParseInt(value, () => section.Path));
106+
instance.Add(ParseInt(value, section.Path));
107107
}
108108
}
109109
}

src/libraries/Microsoft.Extensions.Configuration.Binder/tests/SourceGenerationTests/Baselines/net462/UnsupportedTypes.generated.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ namespace Microsoft.Extensions.Configuration.Binder.SourceGeneration
174174
int x = (int)(10);
175175
if (configuration["x"] is string value13)
176176
{
177-
x = ParseInt(value13, () => configuration.GetSection("x").Path);
177+
x = ParseInt(value13, configuration.GetSection("x").Path);
178178
}
179179

180180
return new global::Record<global::System.Action>(x)

src/libraries/Microsoft.Extensions.Configuration.Binder/tests/SourceGenerationTests/Baselines/netcoreapp/OptionsBuilder/Bind_T_BinderOptions.generated.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ namespace Microsoft.Extensions.Configuration.Binder.SourceGeneration
193193
}
194194
catch (Exception exception)
195195
{
196-
throw new InvalidOperationException($"Failed to convert configuration value at '{getPath()}' to type '{typeof(int)}'.", exception);
196+
throw new InvalidOperationException($"Failed to convert configuration value at '{path}' to type '{typeof(int)}'.", exception);
197197
}
198198
}
199199
#endregion Core binding extensions.

0 commit comments

Comments
 (0)