Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
05d1d0f9
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,发现更多精彩内容 >>
提交
05d1d0f9
编写于
11月 03, 2016
作者:
J
Jared Parsons
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixed the waiter
上级
788b4711
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
11 addition
and
2 deletion
+11
-2
src/EditorFeatures/CSharpTest/EventHookup/EventHookupTestState.cs
...orFeatures/CSharpTest/EventHookup/EventHookupTestState.cs
+10
-1
src/EditorFeatures/Test/EditorServicesTest.csproj
src/EditorFeatures/Test/EditorServicesTest.csproj
+0
-1
src/EditorFeatures/TestUtilities/EventHookup/EventHookupWaiter.cs
...orFeatures/TestUtilities/EventHookup/EventHookupWaiter.cs
+0
-0
src/EditorFeatures/TestUtilities/ServicesTestUtilities.csproj
...EditorFeatures/TestUtilities/ServicesTestUtilities.csproj
+1
-0
未找到文件。
src/EditorFeatures/CSharpTest/EventHookup/EventHookupTestState.cs
浏览文件 @
05d1d0f9
...
...
@@ -7,11 +7,15 @@
using
System.Threading
;
using
System.Xml.Linq
;
using
Microsoft.CodeAnalysis.Editor.CSharp.EventHookup
;
using
Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.EventHookup
;
using
Microsoft.CodeAnalysis.Editor.Implementation.Commands
;
using
Microsoft.CodeAnalysis.Editor.UnitTests
;
using
Microsoft.CodeAnalysis.Editor.UnitTests.Extensions
;
using
Microsoft.CodeAnalysis.Options
;
using
Xunit
;
using
System.ComponentModel.Composition
;
using
System.ComponentModel.Composition.Primitives
;
using
Microsoft.VisualStudio.Composition
;
namespace
Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.EventHookup
{
...
...
@@ -21,7 +25,7 @@ internal sealed class EventHookupTestState : AbstractCommandHandlerTestState
private
Mutex
_testSessionHookupMutex
;
public
EventHookupTestState
(
XElement
workspaceElement
,
IDictionary
<
OptionKey
,
object
>
options
)
:
base
(
workspaceElement
,
null
,
false
)
:
base
(
workspaceElement
,
GetExtraParts
()
,
false
)
{
CommandHandlerService
t
=
(
CommandHandlerService
)
Workspace
.
GetService
<
ICommandHandlerServiceFactory
>().
GetService
(
Workspace
.
Documents
.
Single
().
TextBuffer
);
var
field
=
t
.
GetType
().
GetField
(
"_commandHandlers"
,
BindingFlags
.
NonPublic
|
BindingFlags
.
GetField
|
BindingFlags
.
Instance
);
...
...
@@ -33,6 +37,11 @@ public EventHookupTestState(XElement workspaceElement, IDictionary<OptionKey, ob
Workspace
.
ApplyOptions
(
options
);
}
private
static
ComposableCatalog
GetExtraParts
()
{
return
MinimalTestExportProvider
.
CreateTypeCatalog
(
new
[]
{
typeof
(
EventHookupWaiter
)
});
}
public
static
EventHookupTestState
CreateTestState
(
string
markup
,
IDictionary
<
OptionKey
,
object
>
options
=
null
)
{
var
workspaceXml
=
string
.
Format
(
@"
...
...
src/EditorFeatures/Test/EditorServicesTest.csproj
浏览文件 @
05d1d0f9
...
...
@@ -179,7 +179,6 @@
<Compile
Include=
"EditorAdapter\SpanExtensionsTest.cs"
/>
<Compile
Include=
"EditorAdapter\TextSnapshotImplementationTest.cs"
/>
<Compile
Include=
"EditorAdapter\TextSpanExtensionsTest.cs"
/>
<Compile
Include=
"EventHookup\EventHookupWaiter.cs"
/>
<Compile
Include=
"Extensions\CollectionExtensionsTest.cs"
/>
<Compile
Include=
"Extensions\EnumerableExtensionTests.cs"
/>
<Compile
Include=
"Extensions\IProjectionBufferFactoryServiceExtensionsTests.cs"
/>
...
...
src/EditorFeatures/Test/EventHookup/EventHookupWaiter.cs
→
src/EditorFeatures/Test
Utilities
/EventHookup/EventHookupWaiter.cs
浏览文件 @
05d1d0f9
文件已移动
src/EditorFeatures/TestUtilities/ServicesTestUtilities.csproj
浏览文件 @
05d1d0f9
...
...
@@ -185,6 +185,7 @@
<Compile
Include=
"EditAndContinue\SemanticEditDescription.cs"
/>
<Compile
Include=
"EditAndContinue\TestActiveStatementTrackingService.cs"
/>
<Compile
Include=
"EditorFactory.cs"
/>
<Compile
Include=
"EventHookup\EventHookupWaiter.cs"
/>
<Compile
Include=
"ExceptionUtilities.cs"
/>
<Compile
Include=
"Extensions\WorkspaceExtensions.cs"
/>
<Compile
Include=
"Extensions\XElementExtensions.cs"
/>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录