1 write to Name
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\PropertyHelper\PropertyHelper.cs (1)
55
Name
= property.Name;
48 references to Name
Microsoft.AspNetCore.Shared.Tests (48)
PropertyHelperTest.cs (46)
26
Assert.Equal("foo", helper.
Name
);
40
Assert.Equal("bar", helper.
Name
);
66
instance.GetType()).First(prop => prop.
Name
== "PropA");
82
instance.GetType()).First(prop => prop.
Name
== "PropA");
103
Assert.Equal("foo", helper.
Name
);
131
Assert.Equal("bar_baz2", helper.
Name
);
142
Assert.Equal("Prop1", helper.
Name
);
153
Assert.Equal("Prop5", helper.
Name
);
165
Assert.Equal("Prop5", helper.
Name
);
180
Assert.Equal("Prop6", helper.
Name
);
206
Assert.Equal("Foo", property.
Name
);
219
var helper1 = Assert.Single(PropertyHelper.GetProperties(anonymous.GetType().GetTypeInfo()).Where(prop => prop.
Name
== "IntProp"));
220
var helper2 = Assert.Single(PropertyHelper.GetProperties(anonymous.GetType().GetTypeInfo()).Where(prop => prop.
Name
== "StringProp"));
238
var propAHelper = Assert.Single(helpers.Where(h => h.
Name
== "PropA"));
239
var propBHelper = Assert.Single(helpers.Where(h => h.
Name
== "PropB"));
258
var propAHelper = Assert.Single(helpers.Where(h => h.
Name
== "PropA"));
259
var propBHelper = Assert.Single(helpers.Where(h => h.
Name
== "PropB"));
278
var propAHelper = Assert.Single(helpers.Where(h => h.
Name
== "PropA"));
279
var propBHelper = Assert.Single(helpers.Where(h => h.
Name
== "PropB"));
296
helpers.OrderBy(helper => helper.
Name
, StringComparer.Ordinal),
297
helper => { Assert.Equal(expectedNames[0], helper.
Name
, StringComparer.Ordinal); },
298
helper => { Assert.Equal(expectedNames[1], helper.
Name
, StringComparer.Ordinal); });
312
helpers.OrderBy(helper => helper.
Name
, StringComparer.Ordinal),
313
helper => { Assert.Equal(expectedNames[0], helper.
Name
, StringComparer.Ordinal); },
314
helper => { Assert.Equal(expectedNames[1], helper.
Name
, StringComparer.Ordinal); },
315
helper => { Assert.Equal(expectedNames[2], helper.
Name
, StringComparer.Ordinal); },
316
helper => { Assert.Equal(expectedNames[3], helper.
Name
, StringComparer.Ordinal); });
330
Assert.Equal("Visible", result[0].
Name
);
331
Assert.Equal("PropA", result[1].
Name
);
332
Assert.Equal("PropB", result[2].
Name
);
346
Assert.Equal("Length", property.
Name
);
361
Assert.Equal("Id", result[0].
Name
);
363
Assert.Equal("Name", result[1].
Name
);
378
Assert.Equal("Id", result[0].
Name
);
380
Assert.Equal("Name", result[1].
Name
);
395
Assert.Equal("Length", property.
Name
);
410
Assert.Equal("Id", result[0].
Name
);
412
Assert.Equal("Name", result[1].
Name
);
427
Assert.Equal("Id", result[0].
Name
);
429
Assert.Equal("Name", result[1].
Name
);
491
.Single(p => p.
Name
== nameof(BaseClass.PropA));
505
.Single(p => p.
Name
== nameof(MyProperties.StringProp));
519
.Single(p => p.
Name
== nameof(BaseClass.PropA));
536
.Single(p => p.
Name
== nameof(MyProperties.StringProp));
553
.Single(p => p.
Name
== nameof(BaseClass.PropA));
570
.Single(p => p.
Name
== nameof(MyProperties.StringProp));
src\Shared\PropertyHelper\PropertyHelper.cs (2)
335
dictionary[helper.
Name
] = helper.GetValue(value);
461
var declaredProperty = currentType.GetProperty(propertyHelper.
Name
, DeclaredOnlyLookup);