Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
b37b94b0
R
roslyn
项目概览
lwm1986
/
roslyn
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
roslyn
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b37b94b0
编写于
9月 30, 2019
作者:
I
Ivan Basov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
support bases for classes and structs in tests
上级
e17e82f2
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
22 addition
and
22 deletion
+22
-22
src/EditorFeatures/Test2/GoToBase/CSharpGoToBaseTests.vb
src/EditorFeatures/Test2/GoToBase/CSharpGoToBaseTests.vb
+11
-11
src/EditorFeatures/Test2/GoToBase/VisuaBasicGoToBaseTests.vb
src/EditorFeatures/Test2/GoToBase/VisuaBasicGoToBaseTests.vb
+11
-11
未找到文件。
src/EditorFeatures/Test2/GoToBase/CSharpGoToBaseTests.vb
浏览文件 @
b37b94b0
...
...
@@ -18,7 +18,7 @@ Namespace Microsoft.CodeAnalysis.Editor.UnitTests.GoToBase
<
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
GoToBase
)
>
Public
Async
Function
TestWithSingleClass
()
As
Task
Await
TestAsync
(
"class $$C { }"
)
Await
TestAsync
(
"class $$C { }"
,
,
metadataDefinitions
:
=
{
"mscorlib:Object"
}
)
End
Function
<
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
GoToBase
)
>
...
...
@@ -30,7 +30,7 @@ Namespace Microsoft.CodeAnalysis.Editor.UnitTests.GoToBase
class $$D : C
{
}"
)
}"
,
metadataDefinitions
:
=
{
"mscorlib:Object"
}
)
End
Function
<
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
GoToBase
)
>
...
...
@@ -38,7 +38,7 @@ class $$D : C
Await
TestAsync
(
"interface [|I|] { }
abstract class [|C|] : I { }
class $$D : C { }"
)
class $$D : C { }"
,
metadataDefinitions
:
=
{
"mscorlib:Object"
}
)
End
Function
<
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
GoToBase
)
>
...
...
@@ -47,7 +47,7 @@ class $$D : C { }")
"class [|D|] { }
sealed class $$C : D
{
}"
)
}"
,
metadataDefinitions
:
=
{
"mscorlib:Object"
}
)
End
Function
<
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
GoToBase
)
>
...
...
@@ -67,14 +67,14 @@ sealed class $$C : D
class $$D : C
{
}"
)
}"
,
metadataDefinitions
:
=
{
"mscorlib:Object"
}
)
End
Function
<
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
GoToBase
)
>
Public
Async
Function
TestWithSingleClassImplementation
()
As
Task
Await
TestAsync
(
"class $$C : I { }
interface [|I|] { }"
)
interface [|I|] { }"
,
metadataDefinitions
:
=
{
"mscorlib:Object"
}
)
End
Function
<
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
GoToBase
)
>
...
...
@@ -82,7 +82,7 @@ interface [|I|] { }")
Await
TestAsync
(
"class $$C : I { }
class D : I { }
interface [|I|] { }"
)
interface [|I|] { }"
,
metadataDefinitions
:
=
{
"mscorlib:Object"
}
)
End
Function
<
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
GoToBase
)
>
...
...
@@ -97,7 +97,7 @@ interface [|I2|] : I { }
interface I1 : I { }
interface [|I|] : J1, J2 { }
interface [|J1|] { }
interface [|J2|] { }"
)
interface [|J2|] { }"
,
metadataDefinitions
:
=
{
"mscorlib:Object"
}
)
End
Function
#End Region
...
...
@@ -109,14 +109,14 @@ interface [|J2|] { }")
Await
TestAsync
(
"struct $$C
{
}"
)
}"
,
metadataDefinitions
:
=
{
"mscorlib:Object"
,
"mscorlib:ValueType"
}
)
End
Function
<
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
GoToBase
)
>
Public
Async
Function
TestWithSingleStructImplementation
()
As
Task
Await
TestAsync
(
"struct $$C : I { }
interface [|I|] { }"
)
interface [|I|] { }"
,
metadataDefinitions
:
=
{
"mscorlib:Object"
,
"mscorlib:ValueType"
}
)
End
Function
<
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
GoToBase
)
>
...
...
@@ -127,7 +127,7 @@ interface [|I2|] : I { }
interface I1 : I { }
interface [|I|] : J1, J2 { }
interface [|J1|] { }
interface [|J2|] { }"
)
interface [|J2|] { }"
,
metadataDefinitions
:
=
{
"mscorlib:Object"
,
"mscorlib:ValueType"
}
)
End
Function
#End Region
...
...
src/EditorFeatures/Test2/GoToBase/VisuaBasicGoToBaseTests.vb
浏览文件 @
b37b94b0
...
...
@@ -20,7 +20,7 @@ Namespace Microsoft.CodeAnalysis.Editor.UnitTests.GoToBase
Public
Async
Function
TestWithSingleClass
()
As
Task
Await
TestAsync
(
"class $$C
end class"
)
end class"
,
metadataDefinitions
:
=
{
"mscorlib:Object"
}
)
End
Function
<
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
GoToBase
)
>
...
...
@@ -31,7 +31,7 @@ end class
class $$D
inherits C
end class"
)
end class"
,
metadataDefinitions
:
=
{
"mscorlib:Object"
}
)
End
Function
<
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
GoToBase
)
>
...
...
@@ -44,7 +44,7 @@ mustinherit class [|C|]
end class
class $$D
inherits C
end class"
)
end class"
,
metadataDefinitions
:
=
{
"mscorlib:Object"
}
)
End
Function
<
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
GoToBase
)
>
...
...
@@ -54,7 +54,7 @@ end class")
end class
NotInheritable class $$C
inherits D
end class"
)
end class"
,
metadataDefinitions
:
=
{
"mscorlib:Object"
}
)
End
Function
<
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
GoToBase
)
>
...
...
@@ -72,7 +72,7 @@ end class
class $$D
inherits C
end class"
)
end class"
,
metadataDefinitions
:
=
{
"mscorlib:Object"
}
)
End
Function
<
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
GoToBase
)
>
...
...
@@ -82,7 +82,7 @@ end class")
implements I
end class
interface [|I|]
end interface"
)
end interface"
,
metadataDefinitions
:
=
{
"mscorlib:Object"
}
)
End
Function
<
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
GoToBase
)
>
...
...
@@ -95,7 +95,7 @@ class D
implements I
end class
interface [|I|]
end interface"
)
end interface"
,
metadataDefinitions
:
=
{
"mscorlib:Object"
}
)
End
Function
<
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
GoToBase
)
>
...
...
@@ -128,7 +128,7 @@ end interface
interface [|J1|]
end interface
interface [|J2|]
end interface"
)
end interface"
,
metadataDefinitions
:
=
{
"mscorlib:Object"
}
)
End
Function
#End Region
...
...
@@ -139,7 +139,7 @@ end interface")
Public
Async
Function
TestWithStruct
()
As
Task
Await
TestAsync
(
"structure $$S
end structure"
)
end structure"
,
metadataDefinitions
:
=
{
"mscorlib:Object"
,
"mscorlib:ValueType"
}
)
End
Function
<
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
GoToBase
)
>
...
...
@@ -149,7 +149,7 @@ end structure")
implements I
end structure
interface [|I|]
end interface"
)
end interface"
,
metadataDefinitions
:
=
{
"mscorlib:Object"
,
"mscorlib:ValueType"
}
)
End
Function
<
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
GoToBase
)
>
...
...
@@ -170,7 +170,7 @@ end interface
interface [|J1|]
end interface
interface [|J2|]
end interface"
)
end interface"
,
metadataDefinitions
:
=
{
"mscorlib:Object"
,
"mscorlib:ValueType"
}
)
End
Function
#End Region
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录