PR feedback (test cleanup)
This commit is contained in:
parent
143a3900fb
commit
a296e9ad74
|
|
@ -399,7 +399,7 @@ namespace Microsoft.AspNetCore.Components.Test
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
public void CannotDelegateAttributeAtRoot()
|
public void CannotAddDelegateAttributeAtRoot()
|
||||||
{
|
{
|
||||||
// Arrange
|
// Arrange
|
||||||
var builder = new RenderTreeBuilder(new TestRenderer());
|
var builder = new RenderTreeBuilder(new TestRenderer());
|
||||||
|
|
@ -407,7 +407,7 @@ namespace Microsoft.AspNetCore.Components.Test
|
||||||
// Act/Assert
|
// Act/Assert
|
||||||
Assert.Throws<InvalidOperationException>(() =>
|
Assert.Throws<InvalidOperationException>(() =>
|
||||||
{
|
{
|
||||||
builder.AddAttribute(0, "name", new Action<UIEventArgs>(eventInfo => { }));
|
builder.AddAttribute(0, "name", new Action<string>(text => { }));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue