提交 db9b4dbc 编写于 作者: C Cyrus Najmabadi

Add tests for cases that should pass

上级 4eae4b71
......@@ -2705,6 +2705,88 @@ void Main()
}");
}
[Fact, Trait(Traits.Feature, Traits.Features.CodeActionsSimplifyTypeNames)]
public async Task TestColorColorCase3()
{
await TestInRegularAndScriptAsync(
@"namespace N
{
class Goo
{
public static void Bar()
{
}
}
/// <summary>
/// <see cref=""[|N|].Goo.Bar""/>
/// </summary>
class Program
{
public Goo Goo;
}
}",
@"namespace N
{
class Goo
{
public static void Bar()
{
}
}
/// <summary>
/// <see cref=""Goo.Bar""/>
/// </summary>
class Program
{
public Goo Goo;
}
}");
}
[Fact, Trait(Traits.Feature, Traits.Features.CodeActionsSimplifyTypeNames)]
public async Task TestColorColorCase4()
{
await TestInRegularAndScriptAsync(
@"namespace N
{
class Goo
{
public class Bar
{
public class Baz { }
}
}
/// <summary>
/// <see cref=""[|N|].Goo.Bar.Baz""/>
/// </summary>
class Program
{
public Goo Goo;
}
}",
@"namespace N
{
class Goo
{
public class Bar
{
public class Baz { }
}
}
/// <summary>
/// <see cref=""Goo.Bar.Baz""/>
/// </summary>
class Program
{
public Goo Goo;
}
}");
}
[Fact, Trait(Traits.Feature, Traits.Features.CodeActionsSimplifyTypeNames)]
public async Task TestAliasQualifiedType()
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册