1 type derived from TestInputComponent
Microsoft.AspNetCore.Components.Web.Tests (1)
Forms\InputBaseTest.cs (1)
575
private class TestDateInputComponent :
TestInputComponent
<DateTime>
42 references to TestInputComponent
Microsoft.AspNetCore.Components.Web.Tests (42)
Forms\InputBaseTest.cs (42)
16
var rootComponent = new TestInputHostComponent<string,
TestInputComponent
<string>> { EditContext = new EditContext(model), ValueExpression = () => model.StringProperty };
22
Assert.StartsWith($"{typeof(
TestInputComponent
<string>)} does not support changing the EditContext dynamically", ex.Message);
30
var rootComponent = new TestInputHostComponent<string,
TestInputComponent
<string>> { EditContext = new EditContext(model) };
34
Assert.Contains($"{typeof(
TestInputComponent
<string>)} requires a value for the 'ValueExpression' parameter. Normally this is provided automatically when using 'bind-Value'.", ex.Message);
42
var rootComponent = new TestInputHostComponent<string,
TestInputComponent
<string>>
50
var
inputComponent = await InputRenderer.RenderAndGetComponent(rootComponent);
61
var rootComponent = new TestInputHostComponent<string,
TestInputComponent
<string>>
69
var
inputComponent = await InputRenderer.RenderAndGetComponent(rootComponent);
80
var rootComponent = new TestInputHostComponent<string,
TestInputComponent
<string>>
88
var
inputComponent = await InputRenderer.RenderAndGetComponent(rootComponent);
99
var rootComponent = new TestInputHostComponent<string,
TestInputComponent
<string>>
105
var
inputComponent = await InputRenderer.RenderAndGetComponent(rootComponent);
121
var rootComponent = new TestInputHostComponent<string,
TestInputComponent
<string>>
128
var
inputComponent = await InputRenderer.RenderAndGetComponent(rootComponent);
138
var rootComponent = new TestInputHostComponent<string,
TestInputComponent
<string>>
145
var
inputComponent = await InputRenderer.RenderAndGetComponent(rootComponent);
161
var rootComponent = new TestInputHostComponent<string,
TestInputComponent
<string>>
168
var
inputComponent = await InputRenderer.RenderAndGetComponent(rootComponent);
183
var rootComponent = new TestInputHostComponent<string,
TestInputComponent
<string>>
189
var
inputComponent = await InputRenderer.RenderAndGetComponent(rootComponent);
204
var rootComponent = new TestInputHostComponent<string,
TestInputComponent
<string>>
212
var
inputComponent = await InputRenderer.RenderAndGetComponent(rootComponent);
238
var rootComponent = new TestInputHostComponent<string,
TestInputComponent
<string>>
250
var
inputComponent = await InputRenderer.RenderAndGetComponent(rootComponent);
369
var rootComponent = new TestInputHostComponent<string,
TestInputComponent
<string>>
381
var componentFrame1 = batch1.GetComponentFrames<
TestInputComponent
<string>>().Single();
383
var
component = (
TestInputComponent
<string>)componentFrame1.Component;
405
var rootComponent = new TestInputHostComponent<string,
TestInputComponent
<string>>
414
var component = renderer.Batches.Single().GetComponentFrames<
TestInputComponent
<string>>().Single().Component;
433
var rootComponent = new TestInputHostComponent<string,
TestInputComponent
<string>>
449
var componentFrame1 = batch1.GetComponentFrames<
TestInputComponent
<string>>().Single();
451
var
component = (
TestInputComponent
<string>)componentFrame1.Component;
466
var rootComponent = new TestInputHostComponent<string,
TestInputComponent
<string>>
484
var componentFrame1 = batch1.GetComponentFrames<
TestInputComponent
<string>>().Single();
486
var
component = (
TestInputComponent
<string>)componentFrame1.Component;
498
var rootComponent = new TestInputHostComponent<string,
TestInputComponent
<string>>
512
var componentFrame1 = batch1.GetComponentFrames<
TestInputComponent
<string>>().Single();
514
var
component = (
TestInputComponent
<string>)componentFrame1.Component;