PR feedback (test cleanup)

This commit is contained in:
Ryan Nowak 2019-07-08 20:10:18 -07:00 committed by Ryan Nowak
parent 143a3900fb
commit a296e9ad74
1 changed files with 2 additions and 2 deletions

View File

@ -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 => { }));
}); });
} }