Skip to content

Commit ec5ccac

Browse files
authored
Merge pull request #16853 from Pilchie/TestUpdates
Update some tests
2 parents 51bca85 + 5195d15 commit ec5ccac

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/Components/test/testassets/BasicTestApp/ErrorComponent.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
void IncrementCount()
1212
{
1313
currentCount++;
14-
throw new NotImplementedException("Doing crazy things!");
14+
throw new NotImplementedException("Doing something that won't work!");
1515
}
1616
}

src/Features/JsonPatch/test/Internal/ObjectVisitorTest.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ private class Class1
1414
{
1515
public string Name { get; set; }
1616
public IList<string> States { get; set; } = new List<string>();
17-
public IDictionary<string, string> Countries = new Dictionary<string, string>();
17+
public IDictionary<string, string> CountriesAndRegions = new Dictionary<string, string>();
1818
public dynamic Items { get; set; } = new ExpandoObject();
1919
}
2020

@@ -62,14 +62,14 @@ public static IEnumerable<object[]> ReturnsDictionaryAdapterData
6262
get
6363
{
6464
var model = new Class1();
65-
yield return new object[] { model, "/Countries/USA", model.Countries };
66-
yield return new object[] { model.Countries, "/USA", model.Countries };
65+
yield return new object[] { model, "/CountriesAndRegions/USA", model.CountriesAndRegions };
66+
yield return new object[] { model.CountriesAndRegions, "/USA", model.CountriesAndRegions };
6767

6868
var nestedModel = new Class1Nested();
6969
nestedModel.Customers.Add(new Class1());
70-
yield return new object[] { nestedModel, "/Customers/0/Countries/USA", nestedModel.Customers[0].Countries };
71-
yield return new object[] { nestedModel.Customers, "/0/Countries/USA", nestedModel.Customers[0].Countries };
72-
yield return new object[] { nestedModel.Customers[0], "/Countries/USA", nestedModel.Customers[0].Countries };
70+
yield return new object[] { nestedModel, "/Customers/0/CountriesAndRegions/USA", nestedModel.Customers[0].CountriesAndRegions };
71+
yield return new object[] { nestedModel.Customers, "/0/CountriesAndRegions/USA", nestedModel.Customers[0].CountriesAndRegions };
72+
yield return new object[] { nestedModel.Customers[0], "/CountriesAndRegions/USA", nestedModel.Customers[0].CountriesAndRegions };
7373
}
7474
}
7575

0 commit comments

Comments
 (0)