8 references to StringField
Microsoft.AspNetCore.Components.Forms.Tests (8)
FieldIdentifierTest.cs (8)
173
var fieldIdentifier = FieldIdentifier.Create(() => model.
StringField
);
175
Assert.Equal(nameof(model.
StringField
), fieldIdentifier.FieldName);
202
var fieldIdentifier = FieldIdentifier.Create(() => parentModel.Child.
StringField
);
204
Assert.Equal(nameof(TestModel.
StringField
), fieldIdentifier.FieldName);
211
var fieldIdentifier = FieldIdentifier.Create(() => models[1].
StringField
);
213
Assert.Equal(nameof(TestModel.
StringField
), fieldIdentifier.FieldName);
220
var fieldIdentifier = FieldIdentifier.Create(() => ((TestModel)(object)model).
StringField
);
222
Assert.Equal(nameof(TestModel.
StringField
), fieldIdentifier.FieldName);