Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
321210c5
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,发现更多精彩内容 >>
提交
321210c5
编写于
1月 24, 2018
作者:
M
Martin Strecker
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixes for Roslyn.Services.Editor.CSharp.UnitTests
上级
bff1e856
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
16 addition
and
16 deletion
+16
-16
src/EditorFeatures/CSharpTest/AddUsing/AddUsingTests_NuGet.cs
...EditorFeatures/CSharpTest/AddUsing/AddUsingTests_NuGet.cs
+3
-3
src/EditorFeatures/CSharpTest/Completion/CompletionProviders/SymbolCompletionProviderTests.cs
...tion/CompletionProviders/SymbolCompletionProviderTests.cs
+1
-1
src/EditorFeatures/CSharpTest/EditAndContinue/StatementEditingTests.cs
...tures/CSharpTest/EditAndContinue/StatementEditingTests.cs
+3
-3
src/EditorFeatures/CSharpTest/EditAndContinue/TopLevelEditingTests.cs
...atures/CSharpTest/EditAndContinue/TopLevelEditingTests.cs
+4
-4
src/EditorFeatures/CSharpTest/QuickInfo/SemanticQuickInfoSourceTests.cs
...ures/CSharpTest/QuickInfo/SemanticQuickInfoSourceTests.cs
+5
-5
未找到文件。
src/EditorFeatures/CSharpTest/AddUsing/AddUsingTests_NuGet.cs
浏览文件 @
321210c5
...
...
@@ -150,7 +150,7 @@ public async Task TestOptionsOffered()
{
[|NuGetType|] n;
}"
,
"Use local version '1.0'"
,
string
.
Format
(
FeaturesResources
.
Use_local_version_0
,
"1.0"
)
,
parameters
:
new
TestParameters
(
fixProviderData
:
data
));
await
TestSmartTagTextAsync
(
...
...
@@ -158,7 +158,7 @@ public async Task TestOptionsOffered()
{
[|NuGetType|] n;
}"
,
"Use local version '2.0'"
,
string
.
Format
(
FeaturesResources
.
Use_local_version_0
,
"2.0"
)
,
index
:
1
,
parameters
:
new
TestParameters
(
fixProviderData
:
data
));
...
...
@@ -167,7 +167,7 @@ public async Task TestOptionsOffered()
{
[|NuGetType|] n;
}"
,
"Find and install latest version"
,
FeaturesResources
.
Find_and_install_latest_version
,
index
:
2
,
parameters
:
new
TestParameters
(
fixProviderData
:
data
));
}
...
...
src/EditorFeatures/CSharpTest/Completion/CompletionProviders/SymbolCompletionProviderTests.cs
浏览文件 @
321210c5
...
...
@@ -7486,7 +7486,7 @@ void goo()
</Project>
</Workspace>"
;
var
expectedDescription
=
$"(
field
) int C.x"
;
var
expectedDescription
=
$"(
{
FeaturesResources
.
field
}
) int C.x"
;
await
VerifyItemInLinkedFilesAsync
(
markup
,
"x"
,
expectedDescription
);
}
...
...
src/EditorFeatures/CSharpTest/EditAndContinue/StatementEditingTests.cs
浏览文件 @
321210c5
...
...
@@ -4690,7 +4690,7 @@ static void Main(int X)
var
edits
=
GetTopEdits
(
src1
,
src2
);
edits
.
VerifyRudeDiagnostics
(
Diagnostic
(
RudeEditKind
.
Renamed
,
"int X"
,
"parameter"
));
Diagnostic
(
RudeEditKind
.
Renamed
,
"int X"
,
FeaturesResources
.
parameter
));
}
#
endregion
...
...
@@ -6694,7 +6694,7 @@ static void Main(int X)
var
edits
=
GetTopEdits
(
src1
,
src2
);
edits
.
VerifyRudeDiagnostics
(
Diagnostic
(
RudeEditKind
.
Renamed
,
"int X"
,
"parameter"
));
Diagnostic
(
RudeEditKind
.
Renamed
,
"int X"
,
FeaturesResources
.
parameter
));
}
[
Fact
]
...
...
@@ -8521,7 +8521,7 @@ class C
var
edits
=
GetTopEdits
(
src1
,
src2
);
edits
.
VerifyRudeDiagnostics
(
ActiveStatementsDescription
.
Empty
,
Diagnostic
(
RudeEditKind
.
ModifiersUpdate
,
"static void F()"
,
"method"
));
Diagnostic
(
RudeEditKind
.
ModifiersUpdate
,
"static void F()"
,
FeaturesResources
.
method
));
}
[
Fact
]
...
...
src/EditorFeatures/CSharpTest/EditAndContinue/TopLevelEditingTests.cs
浏览文件 @
321210c5
...
...
@@ -2641,7 +2641,7 @@ public Task<int> WaitAsync()
var
edits
=
GetTopEdits
(
src1
,
src2
);
edits
.
VerifyRudeDiagnostics
(
Diagnostic
(
RudeEditKind
.
Delete
,
"await"
,
CSharpFeaturesResources
.
await_expression
),
Diagnostic
(
RudeEditKind
.
ModifiersUpdate
,
"public Task<int> WaitAsync()"
,
"method"
));
Diagnostic
(
RudeEditKind
.
ModifiersUpdate
,
"public Task<int> WaitAsync()"
,
FeaturesResources
.
method
));
}
[
Fact
]
...
...
@@ -7577,7 +7577,7 @@ public void Indexer_GetterAndSetterBlockBodiesToExpressionBody()
"Delete [set { Console.WriteLine(0); }]@46"
);
edits
.
VerifyRudeDiagnostics
(
Diagnostic
(
RudeEditKind
.
Delete
,
"int this[int a]"
,
"indexer setter"
));
Diagnostic
(
RudeEditKind
.
Delete
,
"int this[int a]"
,
CSharpFeaturesResources
.
indexer_setter
));
}
[
Fact
,
WorkItem
(
17681
,
"https://github.com/dotnet/roslyn/issues/17681"
)]
...
...
@@ -7698,7 +7698,7 @@ public void TupleElementDelete()
"Update [(int, int, int a) M() { return (1, 2, 3); }]@10 -> [(int, int) M() { return (1, 2); }]@10"
);
edits
.
VerifyRudeDiagnostics
(
Diagnostic
(
RudeEditKind
.
TypeUpdate
,
"(int, int) M()"
,
"method"
));
Diagnostic
(
RudeEditKind
.
TypeUpdate
,
"(int, int) M()"
,
FeaturesResources
.
method
));
}
[
Fact
]
...
...
@@ -7713,7 +7713,7 @@ public void TupleElementAdd()
"Update [(int, int) M() { return (1, 2); }]@10 -> [(int, int, int a) M() { return (1, 2, 3); }]@10"
);
edits
.
VerifyRudeDiagnostics
(
Diagnostic
(
RudeEditKind
.
TypeUpdate
,
"(int, int, int a) M()"
,
"method"
));
Diagnostic
(
RudeEditKind
.
TypeUpdate
,
"(int, int, int a) M()"
,
FeaturesResources
.
method
));
}
[
Fact
]
...
...
src/EditorFeatures/CSharpTest/QuickInfo/SemanticQuickInfoSourceTests.cs
浏览文件 @
321210c5
...
...
@@ -4798,7 +4798,7 @@ public async Task OptionalParameterFromPreviousSubmission()
"
;
using
(
var
workspace
=
TestWorkspace
.
Create
(
XElement
.
Parse
(
workspaceDefinition
),
workspaceKind
:
WorkspaceKind
.
Interactive
))
{
await
TestWithOptionsAsync
(
workspace
,
MainDescription
(
"(parameter
) int x = 1"
));
await
TestWithOptionsAsync
(
workspace
,
MainDescription
(
$"(
{
FeaturesResources
.
parameter
}
) int x = 1"
));
}
}
...
...
@@ -4843,7 +4843,7 @@ void M()
}
}
"
+
TestResources
.
NetFX
.
ValueTuple
.
tuplelib_cs
,
MainDescription
(
"(local variable
) ValueTuple y"
));
MainDescription
(
$"(
{
FeaturesResources
.
local_variable
}
) ValueTuple y"
));
}
[
WorkItem
(
18311
,
"https://github.com/dotnet/roslyn/issues/18311"
)]
...
...
@@ -4879,7 +4879,7 @@ void M()
}
}
"
+
TestResources
.
NetFX
.
ValueTuple
.
tuplelib_cs
,
MainDescription
(
"(local variable
) ValueTuple<int> y"
));
MainDescription
(
$"(
{
FeaturesResources
.
local_variable
}
) ValueTuple<int> y"
));
}
[
WorkItem
(
18311
,
"https://github.com/dotnet/roslyn/issues/18311"
)]
...
...
@@ -4915,7 +4915,7 @@ void M()
}
}
"
+
TestResources
.
NetFX
.
ValueTuple
.
tuplelib_cs
,
MainDescription
(
"(local variable
) (int, int) y"
));
MainDescription
(
$"(
{
FeaturesResources
.
local_variable
}
) (int, int) y"
));
}
[
WorkItem
(
18311
,
"https://github.com/dotnet/roslyn/issues/18311"
)]
...
...
@@ -5189,7 +5189,7 @@ void method1()
}
}
"
,
MainDescription
(
"(parameter
) ? b"
));
MainDescription
(
$"(
{
FeaturesResources
.
parameter
}
) ? b"
));
}
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录