9 instantiations of TestModel
Microsoft.AspNetCore.Components.Forms.Tests (9)
FieldIdentifierTest.cs (9)
136
var model = new
TestModel
();
145
var models = new TestModel[] { new
TestModel
(), new
TestModel
() };
165
FieldIdentifier.Create(() => new
TestModel
()));
172
var model = new
TestModel
();
183
var model = new
TestModel
();
201
var parentModel = new ParentModel { Child = new
TestModel
() };
210
var models = new List<TestModel>() { null, new
TestModel
() };
219
var model = new
TestModel
();
14 references to TestModel
Microsoft.AspNetCore.Components.Forms.Tests (14)
FieldIdentifierTest.cs (14)
136
var
model = new TestModel();
145
var models = new
TestModel
[] { new TestModel(), new TestModel() };
147
var result = new
TestModel
[2];
150
var
model = models[i];
154
result[i] = Assert.IsType<
TestModel
>(value);
172
var
model = new TestModel();
183
var
model = new TestModel();
204
Assert.Equal(nameof(
TestModel
.StringField), fieldIdentifier.FieldName);
210
var models = new List<
TestModel
>() { null, new TestModel() };
213
Assert.Equal(nameof(
TestModel
.StringField), fieldIdentifier.FieldName);
219
var
model = new TestModel();
220
var fieldIdentifier = FieldIdentifier.Create(() => ((
TestModel
)(object)model).StringField);
222
Assert.Equal(nameof(
TestModel
.StringField), fieldIdentifier.FieldName);
287
public
TestModel
Child { get; set; }