Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
ad2f3988
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,发现更多精彩内容 >>
提交
ad2f3988
编写于
6月 09, 2017
作者:
T
Tomáš Matoušek
提交者:
GitHub
6月 09, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
EnC test refactoring (#20061)
Refactor tests
上级
2f833689
变更
9
展开全部
隐藏空白更改
内联
并排
Showing
9 changed file
with
1525 addition
and
1468 deletion
+1525
-1468
src/EditorFeatures/CSharpTest/CSharpEditorServicesTest.csproj
...EditorFeatures/CSharpTest/CSharpEditorServicesTest.csproj
+4
-3
src/EditorFeatures/CSharpTest/EditAndContinue/ActiveStatementTests.Methods.cs
...SharpTest/EditAndContinue/ActiveStatementTests.Methods.cs
+1
-1
src/EditorFeatures/CSharpTest/EditAndContinue/ActiveStatementTests.cs
...atures/CSharpTest/EditAndContinue/ActiveStatementTests.cs
+14
-14
src/EditorFeatures/CSharpTest/EditAndContinue/ActiveStatementTrackingServiceTests.cs
...st/EditAndContinue/ActiveStatementTrackingServiceTests.cs
+1
-1
src/EditorFeatures/CSharpTest/EditAndContinue/Helpers/EditingTestBase.cs
...res/CSharpTest/EditAndContinue/Helpers/EditingTestBase.cs
+1
-1
src/EditorFeatures/CSharpTest/EditAndContinue/LineEditTests.cs
...ditorFeatures/CSharpTest/EditAndContinue/LineEditTests.cs
+1
-1
src/EditorFeatures/CSharpTest/EditAndContinue/StatementEditingTests.cs
...tures/CSharpTest/EditAndContinue/StatementEditingTests.cs
+2
-1446
src/EditorFeatures/CSharpTest/EditAndContinue/StatementMatchingTests.cs
...ures/CSharpTest/EditAndContinue/StatementMatchingTests.cs
+1500
-0
src/EditorFeatures/CSharpTest/EditAndContinue/TopLevelEditingTests.cs
...atures/CSharpTest/EditAndContinue/TopLevelEditingTests.cs
+1
-1
未找到文件。
src/EditorFeatures/CSharpTest/CSharpEditorServicesTest.csproj
浏览文件 @
ad2f3988
...
@@ -206,6 +206,7 @@
...
@@ -206,6 +206,7 @@
<Compile
Include=
"Completion\CompletionProviders\ExplicitInterfaceTypeCompletionProviderTests.cs"
/>
<Compile
Include=
"Completion\CompletionProviders\ExplicitInterfaceTypeCompletionProviderTests.cs"
/>
<Compile
Include=
"Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProviderTests.cs"
/>
<Compile
Include=
"Completion\CompletionProviders\ExplicitInterfaceMemberCompletionProviderTests.cs"
/>
<Compile
Include=
"AddUsing\AddUsingTestsWithAddImportDiagnosticProvider.cs"
/>
<Compile
Include=
"AddUsing\AddUsingTestsWithAddImportDiagnosticProvider.cs"
/>
<Compile
Include=
"EditAndContinue\StatementMatchingTests.cs"
/>
<Compile
Include=
"InitializeParameter\AddParameterCheckTests.cs"
/>
<Compile
Include=
"InitializeParameter\AddParameterCheckTests.cs"
/>
<Compile
Include=
"AddParameter\AddParameterTests.cs"
/>
<Compile
Include=
"AddParameter\AddParameterTests.cs"
/>
<Compile
Include=
"AutomaticCompletion\AutomaticBraceCompletionTests.cs"
/>
<Compile
Include=
"AutomaticCompletion\AutomaticBraceCompletionTests.cs"
/>
...
@@ -359,10 +360,10 @@
...
@@ -359,10 +360,10 @@
<Compile
Include=
"EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs"
/>
<Compile
Include=
"EditAndContinue\CSharpEditAndContinueAnalyzerTests.cs"
/>
<Compile
Include=
"EditAndContinue\Helpers\CSharpEditAndContinueTestHelpers.cs"
/>
<Compile
Include=
"EditAndContinue\Helpers\CSharpEditAndContinueTestHelpers.cs"
/>
<Compile
Include=
"EditAndContinue\Helpers\Extensions.cs"
/>
<Compile
Include=
"EditAndContinue\Helpers\Extensions.cs"
/>
<Compile
Include=
"EditAndContinue\Helpers\
RudeEdit
TestBase.cs"
/>
<Compile
Include=
"EditAndContinue\Helpers\
Editing
TestBase.cs"
/>
<Compile
Include=
"EditAndContinue\LineEditTests.cs"
/>
<Compile
Include=
"EditAndContinue\LineEditTests.cs"
/>
<Compile
Include=
"EditAndContinue\
RudeEditStatement
Tests.cs"
/>
<Compile
Include=
"EditAndContinue\
StatementEditing
Tests.cs"
/>
<Compile
Include=
"EditAndContinue\
RudeEditTopLevel
Tests.cs"
/>
<Compile
Include=
"EditAndContinue\
TopLevelEditing
Tests.cs"
/>
<Compile
Include=
"EditAndContinue\SyntaxComparerTests.cs"
/>
<Compile
Include=
"EditAndContinue\SyntaxComparerTests.cs"
/>
<Compile
Include=
"EditAndContinue\SyntaxUtilitiesTests.cs"
/>
<Compile
Include=
"EditAndContinue\SyntaxUtilitiesTests.cs"
/>
<Compile
Include=
"EncapsulateField\EncapsulateFieldCommandHandlerTests.cs"
/>
<Compile
Include=
"EncapsulateField\EncapsulateFieldCommandHandlerTests.cs"
/>
...
...
src/EditorFeatures/CSharpTest/EditAndContinue/ActiveStatementTests.Methods.cs
浏览文件 @
ad2f3988
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
namespace
Microsoft.CodeAnalysis.CSharp.EditAndContinue.UnitTests
namespace
Microsoft.CodeAnalysis.CSharp.EditAndContinue.UnitTests
{
{
public
class
ActiveStatementTests_Methods
:
RudeEdit
TestBase
public
class
ActiveStatementTests_Methods
:
Editing
TestBase
{
{
#
region
Methods
#
region
Methods
...
...
src/EditorFeatures/CSharpTest/EditAndContinue/ActiveStatementTests.cs
浏览文件 @
ad2f3988
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
namespace
Microsoft.CodeAnalysis.CSharp.EditAndContinue.UnitTests
namespace
Microsoft.CodeAnalysis.CSharp.EditAndContinue.UnitTests
{
{
public
class
ActiveStatementTests
:
RudeEdit
TestBase
public
class
ActiveStatementTests
:
Editing
TestBase
{
{
#
region
Update
#
region
Update
...
@@ -8457,7 +8457,7 @@ static void Foo()
...
@@ -8457,7 +8457,7 @@ static void Foo()
#
region
C
#
7.0
#
region
C
#
7.0
[
Fact
]
[
Fact
]
public
void
MethodUpdate
_IsPattern
()
public
void
UpdateAroundActiveStatement
_IsPattern
()
{
{
string
src1
=
@"
string
src1
=
@"
class C
class C
...
@@ -8486,7 +8486,7 @@ static void F(object x)
...
@@ -8486,7 +8486,7 @@ static void F(object x)
}
}
[
Fact
]
[
Fact
]
public
void
MethodUpdate
_DeconstructionDeclarationStatement
()
public
void
UpdateAroundActiveStatement
_DeconstructionDeclarationStatement
()
{
{
string
src1
=
@"
string
src1
=
@"
class C
class C
...
@@ -8515,7 +8515,7 @@ static void F(object x)
...
@@ -8515,7 +8515,7 @@ static void F(object x)
}
}
[
Fact
]
[
Fact
]
public
void
MethodUpdate
_DeconstructionForEach
()
public
void
UpdateAroundActiveStatement
_DeconstructionForEach
()
{
{
string
src1
=
@"
string
src1
=
@"
class C
class C
...
@@ -8544,7 +8544,7 @@ static void F(object o)
...
@@ -8544,7 +8544,7 @@ static void F(object o)
}
}
[
Fact
]
[
Fact
]
public
void
MethodUpdate
_VarDeconstruction
()
public
void
UpdateAroundActiveStatement
_VarDeconstruction
()
{
{
string
src1
=
@"
string
src1
=
@"
class C
class C
...
@@ -8573,7 +8573,7 @@ static void F(object o1, object o2)
...
@@ -8573,7 +8573,7 @@ static void F(object o1, object o2)
}
}
[
Fact
]
[
Fact
]
public
void
MethodUpdate
_TypedDeconstruction
()
public
void
UpdateAroundActiveStatement
_TypedDeconstruction
()
{
{
string
src1
=
@"
string
src1
=
@"
class C
class C
...
@@ -8602,7 +8602,7 @@ static void F(object o1, object o2)
...
@@ -8602,7 +8602,7 @@ static void F(object o1, object o2)
}
}
[
Fact
]
[
Fact
]
public
void
MethodUpdate
_Tuple
()
public
void
UpdateAroundActiveStatement
_Tuple
()
{
{
string
src1
=
@"
string
src1
=
@"
class C
class C
...
@@ -8631,7 +8631,7 @@ static void F(object o)
...
@@ -8631,7 +8631,7 @@ static void F(object o)
}
}
[
Fact
]
[
Fact
]
public
void
MethodUpdate
_LocalFunction
()
public
void
UpdateAroundActiveStatement
_LocalFunction
()
{
{
string
src1
=
@"
string
src1
=
@"
class C
class C
...
@@ -8661,7 +8661,7 @@ static void F(object o)
...
@@ -8661,7 +8661,7 @@ static void F(object o)
}
}
[
Fact
]
[
Fact
]
public
void
MethodUpdate
_OutVar
()
public
void
UpdateAroundActiveStatement
_OutVar
()
{
{
string
src1
=
@"
string
src1
=
@"
class C
class C
...
@@ -8690,7 +8690,7 @@ static void F()
...
@@ -8690,7 +8690,7 @@ static void F()
}
}
[
Fact
]
[
Fact
]
public
void
MethodUpdate
_OutVarRemoved
()
public
void
UpdateAroundActiveStatement
_OutVarRemoved
()
{
{
string
src1
=
@"
string
src1
=
@"
class C
class C
...
@@ -8718,7 +8718,7 @@ static void F()
...
@@ -8718,7 +8718,7 @@ static void F()
}
}
[
Fact
]
[
Fact
]
public
void
MethodUpdate
_Ref
()
public
void
UpdateAroundActiveStatement
_Ref
()
{
{
string
src1
=
@"
string
src1
=
@"
class C
class C
...
@@ -8747,7 +8747,7 @@ static void F()
...
@@ -8747,7 +8747,7 @@ static void F()
}
}
[
Fact
]
[
Fact
]
public
void
MethodUpdate
_DeconstructionDeclaration
()
public
void
UpdateAroundActiveStatement
_DeconstructionDeclaration
()
{
{
string
src1
=
@"
string
src1
=
@"
class C
class C
...
@@ -8776,7 +8776,7 @@ static void F(object o1, object o2)
...
@@ -8776,7 +8776,7 @@ static void F(object o1, object o2)
}
}
[
Fact
]
[
Fact
]
public
void
MethodUpdate
_DeconstructionAssignment
()
public
void
UpdateAroundActiveStatement
_DeconstructionAssignment
()
{
{
string
src1
=
@"
string
src1
=
@"
class C
class C
...
@@ -8807,7 +8807,7 @@ static void F(object o1, object o2)
...
@@ -8807,7 +8807,7 @@ static void F(object o1, object o2)
}
}
[
Fact
]
[
Fact
]
public
void
MethodUpdate
_SwitchWithPattern
()
public
void
UpdateAroundActiveStatement
_SwitchWithPattern
()
{
{
string
src1
=
@"
string
src1
=
@"
class C
class C
...
...
src/EditorFeatures/CSharpTest/EditAndContinue/ActiveStatementTrackingServiceTests.cs
浏览文件 @
ad2f3988
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
namespace
Microsoft.CodeAnalysis.CSharp.EditAndContinue.UnitTests
namespace
Microsoft.CodeAnalysis.CSharp.EditAndContinue.UnitTests
{
{
public
class
ActiveStatementTrackingServiceTests
:
RudeEdit
TestBase
public
class
ActiveStatementTrackingServiceTests
:
Editing
TestBase
{
{
[
Fact
,
WorkItem
(
846042
,
"http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/846042"
)]
[
Fact
,
WorkItem
(
846042
,
"http://vstfdevdiv:8080/DevDiv2/DevDiv/_workitems/edit/846042"
)]
public
void
MovedOutsideOfMethod1
()
public
void
MovedOutsideOfMethod1
()
...
...
src/EditorFeatures/CSharpTest/EditAndContinue/Helpers/
RudeEdit
TestBase.cs
→
src/EditorFeatures/CSharpTest/EditAndContinue/Helpers/
Editing
TestBase.cs
浏览文件 @
ad2f3988
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
namespace
Microsoft.CodeAnalysis.CSharp.EditAndContinue.UnitTests
namespace
Microsoft.CodeAnalysis.CSharp.EditAndContinue.UnitTests
{
{
public
abstract
class
RudeEdit
TestBase
:
CSharpTestBase
public
abstract
class
Editing
TestBase
:
CSharpTestBase
{
{
internal
static
readonly
CSharpEditAndContinueAnalyzer
Analyzer
=
new
CSharpEditAndContinueAnalyzer
();
internal
static
readonly
CSharpEditAndContinueAnalyzer
Analyzer
=
new
CSharpEditAndContinueAnalyzer
();
...
...
src/EditorFeatures/CSharpTest/EditAndContinue/LineEditTests.cs
浏览文件 @
ad2f3988
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
namespace
Microsoft.CodeAnalysis.CSharp.EditAndContinue.UnitTests
namespace
Microsoft.CodeAnalysis.CSharp.EditAndContinue.UnitTests
{
{
public
class
LineEditTests
:
RudeEdit
TestBase
public
class
LineEditTests
:
Editing
TestBase
{
{
#
region
Methods
#
region
Methods
...
...
src/EditorFeatures/CSharpTest/EditAndContinue/
RudeEditStatement
Tests.cs
→
src/EditorFeatures/CSharpTest/EditAndContinue/
StatementEditing
Tests.cs
浏览文件 @
ad2f3988
此差异已折叠。
点击以展开。
src/EditorFeatures/CSharpTest/EditAndContinue/StatementMatchingTests.cs
0 → 100644
浏览文件 @
ad2f3988
此差异已折叠。
点击以展开。
src/EditorFeatures/CSharpTest/EditAndContinue/
RudeEditTopLevel
Tests.cs
→
src/EditorFeatures/CSharpTest/EditAndContinue/
TopLevelEditing
Tests.cs
浏览文件 @
ad2f3988
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
namespace
Microsoft.CodeAnalysis.CSharp.EditAndContinue.UnitTests
namespace
Microsoft.CodeAnalysis.CSharp.EditAndContinue.UnitTests
{
{
public
class
RudeEditTopLevelTests
:
RudeEdit
TestBase
public
class
TopLevelEditingTests
:
Editing
TestBase
{
{
#
region
Usings
#
region
Usings
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录