Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
c7eaa868
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,发现更多精彩内容 >>
提交
c7eaa868
编写于
3月 21, 2019
作者:
I
Ivan Basov
提交者:
Sam Harwell
3月 21, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix missing assertions for CompletionItemsContainsAll
上级
6151a4d8
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
10 addition
and
24 deletion
+10
-24
src/EditorFeatures/Test2/IntelliSense/CSharpCompletionCommandHandlerTests.vb
...Test2/IntelliSense/CSharpCompletionCommandHandlerTests.vb
+7
-7
src/EditorFeatures/Test2/IntelliSense/VisualBasicCompletionCommandHandlerTests.vb
.../IntelliSense/VisualBasicCompletionCommandHandlerTests.vb
+3
-3
src/EditorFeatures/TestUtilities2/Intellisense/LegacyTestState.vb
...orFeatures/TestUtilities2/Intellisense/LegacyTestState.vb
+0
-6
src/EditorFeatures/TestUtilities2/Intellisense/ModernCompletionTestState.vb
.../TestUtilities2/Intellisense/ModernCompletionTestState.vb
+0
-6
src/EditorFeatures/TestUtilities2/Intellisense/TestStateBase.vb
...itorFeatures/TestUtilities2/Intellisense/TestStateBase.vb
+0
-2
未找到文件。
src/EditorFeatures/Test2/IntelliSense/CSharpCompletionCommandHandlerTests.vb
浏览文件 @
c7eaa868
...
...
@@ -2432,7 +2432,7 @@ class C
state
.
SendInvokeCompletionList
()
Await
state
.
WaitForAsynchronousOperationsAsync
()
Await
state
.
AssertSelectedCompletionItem
(
"string"
)
state
.
CompletionItemsContainsAll
({
"integer
"
,
"Method"
})
state
.
AssertCompletionItemsContainAll
({
"int
"
,
"Method"
})
End
Using
End
Function
...
...
@@ -2453,7 +2453,7 @@ class C
state
.
SendInvokeCompletionList
()
Await
state
.
WaitForAsynchronousOperationsAsync
()
Await
state
.
AssertSelectedCompletionItem
(
"AccessViolationException"
)
state
.
CompletionItemsContainsAll
({
"integer
"
,
"Method"
})
state
.
AssertCompletionItemsContainAll
({
"int
"
,
"Method"
})
End
Using
End
Function
...
...
@@ -2474,7 +2474,7 @@ class C
state
.
SendInvokeCompletionList
()
Await
state
.
WaitForAsynchronousOperationsAsync
()
Await
state
.
AssertSelectedCompletionItem
(
"string"
)
state
.
CompletionItemsContainsAll
({
"integer
"
,
"Method"
})
state
.
AssertCompletionItemsContainAll
({
"int
"
,
"Method"
})
End
Using
End
Function
...
...
@@ -4052,7 +4052,7 @@ class C
state
.
SendInvokeCompletionList
()
Await
state
.
AssertSelectedCompletionItem
(
"Red"
)
state
.
CompletionItemsContainsAll
(
displayText
:
=
{
"Red"
,
"Green"
,
"Blue"
,
"Equals"
})
state
.
AssertCompletionItemsContainAll
(
{
"Red"
,
"Green"
,
"Blue"
,
"Equals"
})
Dim
filters
=
state
.
GetCompletionItemFilters
()
Dim
dict
=
New
Dictionary
(
Of
CompletionItemFilter
,
Boolean
)
...
...
@@ -4065,7 +4065,7 @@ class C
Dim
args
=
New
CompletionItemFilterStateChangedEventArgs
(
dict
.
ToImmutableDictionary
())
state
.
RaiseFiltersChanged
(
args
)
Await
state
.
AssertSelectedCompletionItem
(
"Red"
)
state
.
CompletionItemsContains
All
(
displayText
:
=
{
"Red"
,
"Green"
,
"Blue"
})
state
.
AssertCompletionItemsContain
All
(
displayText
:
=
{
"Red"
,
"Green"
,
"Blue"
})
state
.
AssertCompletionItemsDoNotContainAny
({
"Equals"
})
For
Each
f
In
filters
...
...
@@ -4075,7 +4075,7 @@ class C
args
=
New
CompletionItemFilterStateChangedEventArgs
(
dict
.
ToImmutableDictionary
())
state
.
RaiseFiltersChanged
(
args
)
Await
state
.
AssertSelectedCompletionItem
(
"Red"
)
state
.
CompletionItemsContainsAll
(
displayText
:
=
{
"Red"
,
"Green"
,
"Blue"
,
"Equals"
})
state
.
AssertCompletionItemsContainAll
(
{
"Red"
,
"Green"
,
"Blue"
,
"Equals"
})
End
Using
End
Function
...
...
@@ -4621,7 +4621,7 @@ class C
Await
state
.
AssertNoCompletionSession
()
state
.
SendTypeChars
(
"."
)
Await
state
.
AssertCompletionSession
()
state
.
CompletionItemsContains
All
(
displayText
:
=
{
"ToString"
,
"GetHashCode"
})
state
.
AssertCompletionItemsContain
All
(
displayText
:
=
{
"ToString"
,
"GetHashCode"
})
End
Using
End
Function
...
...
src/EditorFeatures/Test2/IntelliSense/VisualBasicCompletionCommandHandlerTests.vb
浏览文件 @
c7eaa868
...
...
@@ -1582,7 +1582,7 @@ End Class
state
.
SendInvokeCompletionList
()
Await
state
.
WaitForAsynchronousOperationsAsync
()
Await
state
.
AssertSelectedCompletionItem
(
"String"
)
state
.
CompletionItemsContains
All
({
"Integer"
,
"G"
})
state
.
AssertCompletionItemsContain
All
({
"Integer"
,
"G"
})
End
Using
End
Function
...
...
@@ -1600,7 +1600,7 @@ End Class
state
.
SendInvokeCompletionList
()
Await
state
.
WaitForAsynchronousOperationsAsync
()
Await
state
.
AssertSelectedCompletionItem
(
"String"
)
state
.
CompletionItemsContains
All
({
"Integer"
,
"G"
})
state
.
AssertCompletionItemsContain
All
({
"Integer"
,
"G"
})
End
Using
End
Function
...
...
@@ -1637,7 +1637,7 @@ End Class
state
.
SendBackspace
()
Await
state
.
WaitForAsynchronousOperationsAsync
()
Await
state
.
AssertSelectedCompletionItem
(
"String"
)
state
.
CompletionItemsContains
All
({
"Integer"
,
"G"
})
state
.
AssertCompletionItemsContain
All
({
"Integer"
,
"G"
})
End
Using
End
Function
...
...
src/EditorFeatures/TestUtilities2/Intellisense/LegacyTestState.vb
浏览文件 @
c7eaa868
...
...
@@ -169,12 +169,6 @@ Namespace Microsoft.CodeAnalysis.Editor.UnitTests.IntelliSense
Assert
.
NotNull
(
Me
.
CurrentCompletionPresenterSession
)
End
Function
Public
Overrides
Function
CompletionItemsContainsAll
(
displayText
As
String
())
As
Boolean
AssertNoAsynchronousOperationsRunning
()
Return
displayText
.
All
(
Function
(
v
)
CurrentCompletionPresenterSession
.
CompletionItems
.
Any
(
Function
(
i
)
i
.
DisplayText
=
v
))
End
Function
Public
Overrides
Sub
AssertItemsInOrder
(
expectedOrder
As
String
())
AssertNoAsynchronousOperationsRunning
()
Dim
items
=
CurrentCompletionPresenterSession
.
CompletionItems
...
...
src/EditorFeatures/TestUtilities2/Intellisense/ModernCompletionTestState.vb
浏览文件 @
c7eaa868
...
...
@@ -192,12 +192,6 @@ Namespace Microsoft.CodeAnalysis.Editor.UnitTests.IntelliSense
Await
AssertCompletionSession
()
End
Function
Public
Overrides
Function
CompletionItemsContainsAll
(
displayText
As
String
())
As
Boolean
AssertNoAsynchronousOperationsRunning
()
Dim
items
=
GetCompletionItems
()
Return
displayText
.
All
(
Function
(
v
)
items
.
Any
(
Function
(
i
)
i
.
DisplayText
=
v
))
End
Function
Public
Overrides
Sub
AssertItemsInOrder
(
expectedOrder
As
String
())
AssertNoAsynchronousOperationsRunning
()
Dim
session
=
GetExportedValue
(
Of
IAsyncCompletionBroker
)().
GetSession
(
TextView
)
...
...
src/EditorFeatures/TestUtilities2/Intellisense/TestStateBase.vb
浏览文件 @
c7eaa868
...
...
@@ -211,8 +211,6 @@ Namespace Microsoft.CodeAnalysis.Editor.UnitTests.IntelliSense
Public
MustOverride
Overloads
Function
AssertCompletionSession
(
Optional
projectionsView
As
ITextView
=
Nothing
)
As
Task
Public
MustOverride
Overloads
Function
CompletionItemsContainsAll
(
displayText
As
String
())
As
Boolean
Public
Sub
AssertCompletionItemsContainAll
(
displayText
As
String
())
AssertNoAsynchronousOperationsRunning
()
Dim
items
=
GetCompletionItems
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录