|
|
|
@ -29,10 +29,10 @@ using NUnit.Framework; |
|
|
|
|
|
|
|
|
|
|
|
namespace ICSharpCode.NRefactory.CSharp.CodeCompletion |
|
|
|
namespace ICSharpCode.NRefactory.CSharp.CodeCompletion |
|
|
|
{ |
|
|
|
{ |
|
|
|
[TestFixture()] |
|
|
|
[TestFixture] |
|
|
|
public class DocumentationContextTests |
|
|
|
public class DocumentationContextTests |
|
|
|
{ |
|
|
|
{ |
|
|
|
[Test()] |
|
|
|
[Test] |
|
|
|
public void TestClosingTag() |
|
|
|
public void TestClosingTag() |
|
|
|
{ |
|
|
|
{ |
|
|
|
CodeCompletionBugTests.CombinedProviderTest( |
|
|
|
CodeCompletionBugTests.CombinedProviderTest( |
|
|
|
@ -50,11 +50,11 @@ public class Test |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[Test()] |
|
|
|
[Test] |
|
|
|
public void TestClosingTagMultiLine() |
|
|
|
public void TestClosingTagMultiLine() |
|
|
|
{ |
|
|
|
{ |
|
|
|
CodeCompletionBugTests.CombinedProviderTest( |
|
|
|
CodeCompletionBugTests.CombinedProviderTest( |
|
|
|
@"using System;
|
|
|
|
@"using System;
|
|
|
|
|
|
|
|
|
|
|
|
public class Test |
|
|
|
public class Test |
|
|
|
{ |
|
|
|
{ |
|
|
|
@ -69,6 +69,30 @@ public class Test |
|
|
|
Assert.IsNotNull(provider.Find("/summary>")); |
|
|
|
Assert.IsNotNull(provider.Find("/summary>")); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// Bug 9998 - Doc comments completion offers </para> as end tag for <param>
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
[Test] |
|
|
|
|
|
|
|
public void TestBug9998() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
CodeCompletionBugTests.CombinedProviderTest( |
|
|
|
|
|
|
|
@"using System;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class Test |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
/// <param name=""args""> $<$
|
|
|
|
|
|
|
|
public static void Main(string[] args) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
", provider => {
|
|
|
|
|
|
|
|
Assert.IsNotNull(provider.Find("/param>")); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|