提交 87e50030 编写于 作者: C Cyrus Najmabadi

Add test.

上级 c810cc3e
......@@ -2901,6 +2901,30 @@ void Goo()
Regex.Text(" # is not end of line comment"));
}
[WpfFact, Trait(Traits.Feature, Traits.Features.Classification)]
public async Task TestRegex11()
{
await TestAsync(
@"
using System.Text.RegularExpressions;
class Program
{
// language=regex
private static string myRegex = @""$(\a\t\u0020)"";
}",
Regex.Anchor("$"),
Regex.Grouping("("),
Regex.OtherEscape("\\"),
Regex.OtherEscape("a"),
Regex.OtherEscape("\\"),
Regex.OtherEscape("t"),
Regex.OtherEscape("\\"),
Regex.OtherEscape("u"),
Regex.OtherEscape("0020"),
Regex.Grouping(")"));
}
[Fact, Trait(Traits.Feature, Traits.Features.Classification)]
public async Task TestUnmanagedConstraint_LocalFunction_Keyword()
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册