Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
54a1736b
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,发现更多精彩内容 >>
提交
54a1736b
编写于
11月 03, 2016
作者:
C
CyrusNajmabadi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add VB tests.
上级
efbc71c9
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
22 addition
and
22 deletion
+22
-22
src/EditorFeatures/VisualBasicTest/BasicEditorServicesTest.vbproj
...orFeatures/VisualBasicTest/BasicEditorServicesTest.vbproj
+2
-2
src/EditorFeatures/VisualBasicTest/Structure/CollectionInitializerStructureProviderTests.vb
.../Structure/CollectionInitializerStructureProviderTests.vb
+12
-8
src/EditorFeatures/VisualBasicTest/Structure/ObjectCreationInitializerStructureProviderTests.vb
...ucture/ObjectCreationInitializerStructureProviderTests.vb
+8
-12
未找到文件。
src/EditorFeatures/VisualBasicTest/BasicEditorServicesTest.vbproj
浏览文件 @
54a1736b
...
...
@@ -120,6 +120,7 @@
<Compile
Include=
"Classification\SemanticClassifierTests.vb"
/>
<Compile
Include=
"Classification\SyntacticClassifierTests.vb"
/>
<Compile
Include=
"CodeActions\AbstractVisualBasicCodeActionTest.vb"
/>
<Compile
Include=
"Structure\CollectionInitializerStructureProviderTests.vb"
/>
<Compile
Include=
"ConvertToInterpolatedString\ConvertPlaceholderToInterpolatedStringTests.vb"
/>
<Compile
Include=
"CodeActions\EncapsulateField\EncapsulateFieldTests.vb"
/>
<Compile
Include=
"CodeActions\ExtractMethod\ExtractMethodTests.vb"
/>
...
...
@@ -190,8 +191,7 @@
<Compile
Include=
"Diagnostics\OverloadBase\OverloadBaseTests.vb"
/>
<Compile
Include=
"Diagnostics\PreferFrameworkType\PreferFrameworkTypeTests.vb"
/>
<Compile
Include=
"Diagnostics\PreferFrameworkType\PreferFrameworkTypeTests_FixAllTests.vb"
/>
<Compile
Include=
"Structure\ObjectCollectionInitializerStructureProviderTests.vb"
/>
<Compile
Include=
"Structure\ObjectMemberInitializerStructureProviderTests.vb"
/>
<Compile
Include=
"Structure\ObjectCreationInitializerStructureProviderTests.vb"
/>
<Compile
Include=
"QualifyMemberAccess\QualifyMemberAccessTests.vb"
/>
<Compile
Include=
"QualifyMemberAccess\QualifyMemberAccessTests_FixAllTests.vb"
/>
<Compile
Include=
"Diagnostics\RemoveUnnecessaryCast\RemoveUnnecessaryCastTests.vb"
/>
...
...
src/EditorFeatures/VisualBasicTest/Structure/
ObjectMember
InitializerStructureProviderTests.vb
→
src/EditorFeatures/VisualBasicTest/Structure/
Collection
InitializerStructureProviderTests.vb
浏览文件 @
54a1736b
...
...
@@ -5,22 +5,26 @@ Imports Microsoft.CodeAnalysis.VisualBasic.Structure
Imports
Microsoft.CodeAnalysis.VisualBasic.Syntax
Namespace
Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.Outlining
Public
Class
ObjectMember
InitializerStructureProviderTests
Inherits
AbstractVisualBasicSyntaxNodeStructureProviderTests
(
Of
ObjectMember
InitializerSyntax
)
Public
Class
Collection
InitializerStructureProviderTests
Inherits
AbstractVisualBasicSyntaxNodeStructureProviderTests
(
Of
Collection
InitializerSyntax
)
Friend
Overrides
Function
CreateProvider
()
As
AbstractSyntaxStructureProvider
Return
New
ObjectCrea
tionInitializerStructureProvider
()
Return
New
Collec
tionInitializerStructureProvider
()
End
Function
<
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Outlining
)
>
Public
Async
Function
Test
Out
erInitializer
()
As
Task
Public
Async
Function
Test
Inn
erInitializer
()
As
Task
Const
code
=
"
Class C
private i as integer
Sub M()
dim d = {|hintspan:new C{|textspan: $$With {
.i = 1
}|}|}
dim d = new Dictionary(of integer, string) From {
{|hintspan:{|textspan:$${
1,
""
foo
""
},|}|}
{
1,
""
foo
""
}
}
End Sub
End Class
"
...
...
src/EditorFeatures/VisualBasicTest/Structure/ObjectC
ollec
tionInitializerStructureProviderTests.vb
→
src/EditorFeatures/VisualBasicTest/Structure/ObjectC
rea
tionInitializerStructureProviderTests.vb
浏览文件 @
54a1736b
...
...
@@ -5,15 +5,15 @@ Imports Microsoft.CodeAnalysis.VisualBasic.Structure
Imports
Microsoft.CodeAnalysis.VisualBasic.Syntax
Namespace
Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.Outlining
Public
Class
ObjectC
ollec
tionInitializerStructureProviderTests
Inherits
AbstractVisualBasicSyntaxNodeStructureProviderTests
(
Of
ObjectC
ollec
tionInitializerSyntax
)
Public
Class
ObjectC
rea
tionInitializerStructureProviderTests
Inherits
AbstractVisualBasicSyntaxNodeStructureProviderTests
(
Of
ObjectC
rea
tionInitializerSyntax
)
Friend
Overrides
Function
CreateProvider
()
As
AbstractSyntaxStructureProvider
Return
New
ObjectCreationInitializerStructureProvider
()
End
Function
<
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Outlining
)
>
Public
Async
Function
Test
Outer
Initializer
()
As
Task
Public
Async
Function
Test
Collection
Initializer
()
As
Task
Const
code
=
"
Class C
Sub M()
...
...
@@ -29,18 +29,14 @@ End Class
End
Function
<
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Outlining
)
>
Public
Async
Function
Test
Inn
erInitializer
()
As
Task
Public
Async
Function
Test
Memb
erInitializer
()
As
Task
Const
code
=
"
Class C
private i as integer
Sub M()
dim d = new Dictionary(of integer, string) From {
{|hintspan:{|textspan:$${
1,
""
foo
""
},|}|}
{
1,
""
foo
""
}
}
dim d = {|hintspan:new C{|textspan: $$With {
.i = 1
}|}|}
End Sub
End Class
"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录