Browse Source

correct test

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@263 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Markus Palme 20 years ago
parent
commit
740ff79422
  1. 4
      src/Libraries/NRefactory/Test/Parser/TypeLevel/CustomEventTests.cs

4
src/Libraries/NRefactory/Test/Parser/TypeLevel/CustomEventTests.cs

@ -22,7 +22,7 @@ namespace ICSharpCode.NRefactory.Tests.AST @@ -22,7 +22,7 @@ namespace ICSharpCode.NRefactory.Tests.AST
#region VB.NET
[Test]
public void VBNetContinueStatementTest()
public void VBNetCustomEventsStatementTest()
{
string code = @" Public Custom Event TestEvent As EventHandler
AddHandler(ByVal value As EventHandler)
@ -43,7 +43,7 @@ namespace ICSharpCode.NRefactory.Tests.AST @@ -43,7 +43,7 @@ namespace ICSharpCode.NRefactory.Tests.AST
End If
End RaiseEvent
End Event";
CustomEventDeclaration customEventDecl = (CustomEventDeclaration)ParseUtilVBNet.ParseTypeMember(code, typeof(ContinueStatement));
CustomEventDeclaration customEventDecl = (CustomEventDeclaration)ParseUtilVBNet.ParseTypeMember(code, typeof(CustomEventDeclaration));
Assert.IsNotNull(customEventDecl);
Assert.AreEqual("TestEvent", customEventDecl.Name);
}

Loading…
Cancel
Save