Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
73330d9a
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,发现更多精彩内容 >>
提交
73330d9a
编写于
4月 11, 2014
作者:
Y
YingP99
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update Unittest' TFS WorkItem with description - "DevDiv" (7 of 7) (changeset 1229438)
上级
10d2d2a9
变更
17
展开全部
隐藏空白更改
内联
并排
Showing
17 changed file
with
298 addition
and
298 deletion
+298
-298
Src/Workspaces/CSharpTest/Formatting/FormattingMultipleSpanTests.cs
...aces/CSharpTest/Formatting/FormattingMultipleSpanTests.cs
+3
-3
Src/Workspaces/CSharpTest/Formatting/FormattingTests.cs
Src/Workspaces/CSharpTest/Formatting/FormattingTests.cs
+76
-76
Src/Workspaces/CSharpTest/Formatting/FormattingTriviaTests.cs
...Workspaces/CSharpTest/Formatting/FormattingTriviaTests.cs
+9
-9
Src/Workspaces/CoreTest/CodeCleanup/AddMissingTokensTests.cs
Src/Workspaces/CoreTest/CodeCleanup/AddMissingTokensTests.cs
+47
-47
Src/Workspaces/CoreTest/CodeCleanup/CodeCleanupTests.cs
Src/Workspaces/CoreTest/CodeCleanup/CodeCleanupTests.cs
+2
-2
Src/Workspaces/CoreTest/CodeCleanup/FixIncorrectTokenTests.cs
...Workspaces/CoreTest/CodeCleanup/FixIncorrectTokenTests.cs
+2
-2
Src/Workspaces/CoreTest/CodeCleanup/NormalizeModifiersOrOperatorsTests.cs
...oreTest/CodeCleanup/NormalizeModifiersOrOperatorsTests.cs
+13
-13
Src/Workspaces/CoreTest/CodeCleanup/ReduceTokenTests.cs
Src/Workspaces/CoreTest/CodeCleanup/ReduceTokenTests.cs
+2
-2
Src/Workspaces/CoreTest/CodeCleanup/RemoveUnnecessaryLineContinuationTests.cs
...est/CodeCleanup/RemoveUnnecessaryLineContinuationTests.cs
+33
-33
Src/Workspaces/CoreTest/DocumentationCommentTests.cs
Src/Workspaces/CoreTest/DocumentationCommentTests.cs
+9
-9
Src/Workspaces/CoreTest/FindReferencesTests.cs
Src/Workspaces/CoreTest/FindReferencesTests.cs
+1
-1
Src/Workspaces/CoreTest/MSBuildWorkspaceTests.cs
Src/Workspaces/CoreTest/MSBuildWorkspaceTests.cs
+23
-23
Src/Workspaces/CoreTest/ProjectDependencyGraphTests.cs
Src/Workspaces/CoreTest/ProjectDependencyGraphTests.cs
+1
-1
Src/Workspaces/CoreTest/SolutionParsingTests.cs
Src/Workspaces/CoreTest/SolutionParsingTests.cs
+2
-2
Src/Workspaces/CoreTest/SolutionTests.cs
Src/Workspaces/CoreTest/SolutionTests.cs
+4
-4
Src/Workspaces/CoreTest/TemporaryStorageServiceTests.cs
Src/Workspaces/CoreTest/TemporaryStorageServiceTests.cs
+1
-1
Src/Workspaces/VisualBasicTest/Formatting/FormattingTests.vb
Src/Workspaces/VisualBasicTest/Formatting/FormattingTests.vb
+70
-70
未找到文件。
Src/Workspaces/CSharpTest/Formatting/FormattingMultipleSpanTests.cs
浏览文件 @
73330d9a
...
...
@@ -103,7 +103,7 @@ class A { }";
}
[
Fact
]
[
WorkItem
(
554160
)]
[
WorkItem
(
554160
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
FormatSpanNullReference01
()
{
...
...
@@ -128,7 +128,7 @@ void F()
}
[
Fact
]
[
WorkItem
(
554160
)]
[
WorkItem
(
554160
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
FormatSpanNullReference02
()
{
...
...
@@ -152,7 +152,7 @@ void F()
AssertFormat
(
code
,
expected
,
changedOptionSet
:
changingOptions
);
}
[
WorkItem
(
539231
)]
[
WorkItem
(
539231
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
EmptySpan
()
{
...
...
Src/Workspaces/CSharpTest/Formatting/FormattingTests.cs
浏览文件 @
73330d9a
...
...
@@ -946,7 +946,7 @@ public void nothing_again(Action a)
}"
);
}
[
WorkItem
(
766133
)]
[
WorkItem
(
766133
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
RelativeIndentationToFirstTokenInBaseTokenWithObjectInitializers
()
{
...
...
@@ -986,7 +986,7 @@ class D
}"
,
false
,
changingOptions
);
}
[
WorkItem
(
772298
)]
[
WorkItem
(
772298
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
IndentUserSettingNonDefaultTest_OpenBracesOfLambdaWithNoNewLine
()
{
...
...
@@ -1361,7 +1361,7 @@ void bar()
class foo{int x = 0;}"
,
false
,
changingOptions
);
}
[
WorkItem
(
751789
)]
[
WorkItem
(
751789
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
NewLineForOpenBracesDefault
()
{
...
...
@@ -1486,7 +1486,7 @@ public class foo : System.Object
}"
);
}
[
WorkItem
(
751789
)]
[
WorkItem
(
751789
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
NewLineForOpenBracesNonDefault
()
{
...
...
@@ -2223,7 +2223,7 @@ void M()
}
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
[
WorkItem
(
545909
)]
[
WorkItem
(
545909
,
"DevDiv"
)]
public
void
DontAddSpaceAfterIncrement
()
{
var
code
=
@"class C
...
...
@@ -2237,7 +2237,7 @@ void M(int[] i)
}
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
[
WorkItem
(
545909
)]
[
WorkItem
(
545909
,
"DevDiv"
)]
public
void
DontAddSpaceBeforeIncrement
()
{
var
code
=
@"class C
...
...
@@ -2251,7 +2251,7 @@ void M(int[] i)
}
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
[
WorkItem
(
545909
)]
[
WorkItem
(
545909
,
"DevDiv"
)]
public
void
DontAddSpaceAfterDecrement
()
{
var
code
=
@"class C
...
...
@@ -2265,7 +2265,7 @@ void M(int[] i)
}
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
[
WorkItem
(
545909
)]
[
WorkItem
(
545909
,
"DevDiv"
)]
public
void
DontAddSpaceBeforeDecrement
()
{
var
code
=
@"class C
...
...
@@ -2836,7 +2836,7 @@ int Method()
} "
);
}
[
WorkItem
(
537763
)]
[
WorkItem
(
537763
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
NullableType
()
{
...
...
@@ -2855,7 +2855,7 @@ static void Main(string[] args)
}"
);
}
[
WorkItem
(
537766
)]
[
WorkItem
(
537766
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
SuppressWrappingOnBraces
()
{
...
...
@@ -2866,7 +2866,7 @@ public void SuppressWrappingOnBraces()
"
);
}
[
WorkItem
(
537824
)]
[
WorkItem
(
537824
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
DoWhile
()
{
...
...
@@ -2891,7 +2891,7 @@ void Foo()
"
);
}
[
WorkItem
(
537774
)]
[
WorkItem
(
537774
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
SuppressWrappingBug
()
{
...
...
@@ -2911,7 +2911,7 @@ int Foo()
"
);
}
[
WorkItem
(
537768
)]
[
WorkItem
(
537768
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
PreserveLineForAttribute
()
{
...
...
@@ -2932,7 +2932,7 @@ static void Main(string[] args)
"
);
}
[
WorkItem
(
537878
)]
[
WorkItem
(
537878
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
NoFormattingOnMissingTokens
()
{
...
...
@@ -2959,7 +2959,7 @@ void Foo()
"
);
}
[
WorkItem
(
537783
)]
[
WorkItem
(
537783
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
UnaryExpression
()
{
...
...
@@ -2982,7 +2982,7 @@ static void Main(string[] args)
"
);
}
[
WorkItem
(
537885
)]
[
WorkItem
(
537885
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
Pointer
()
{
...
...
@@ -3003,7 +3003,7 @@ static void Main(string[] args)
"
);
}
[
WorkItem
(
537886
)]
[
WorkItem
(
537886
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
Tild
()
{
...
...
@@ -3026,7 +3026,7 @@ static void Main(string[] args)
"
);
}
[
WorkItem
(
537884
)]
[
WorkItem
(
537884
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
ArrayInitializer1
()
{
...
...
@@ -3051,7 +3051,7 @@ static void Main(string[] args)
"
);
}
[
WorkItem
(
537884
)]
[
WorkItem
(
537884
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
ArrayInitializer2
()
{
...
...
@@ -3076,7 +3076,7 @@ static void Main(string[] args)
"
);
}
[
WorkItem
(
537884
)]
[
WorkItem
(
537884
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
ImplicitArrayInitializer
()
{
...
...
@@ -3101,7 +3101,7 @@ static void Main(string[] args)
"
);
}
[
WorkItem
(
537884
)]
[
WorkItem
(
537884
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
CollectionInitializer
()
{
...
...
@@ -3126,7 +3126,7 @@ static void Main(string[] args)
"
);
}
[
WorkItem
(
537916
)]
[
WorkItem
(
537916
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
AddressOfOperator
()
{
...
...
@@ -3149,7 +3149,7 @@ void Method()
"
);
}
[
WorkItem
(
537885
)]
[
WorkItem
(
537885
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
DereferenceOperator
()
{
...
...
@@ -3174,7 +3174,7 @@ void Method()
"
);
}
[
WorkItem
(
537905
)]
[
WorkItem
(
537905
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
Namespaces
()
{
...
...
@@ -3192,7 +3192,7 @@ public void NamespaceDeclaration()
}"
);
}
[
WorkItem
(
537902
)]
[
WorkItem
(
537902
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
DoWhile1
()
{
...
...
@@ -3288,7 +3288,7 @@ public void Attributes2()
}"
);
}
[
WorkItem
(
538288
)]
[
WorkItem
(
538288
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
ColonColon1
()
{
...
...
@@ -3306,7 +3306,7 @@ public void Method()
}"
);
}
[
WorkItem
(
538354
)]
[
WorkItem
(
538354
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
BugFix3939
()
{
...
...
@@ -3319,14 +3319,14 @@ public void BugFix3939()
Generic;"
);
}
[
WorkItem
(
538354
)]
[
WorkItem
(
538354
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
Tab1
()
{
AssertFormat
(
@"using System;"
,
@" using System;"
);
}
[
WorkItem
(
538329
)]
[
WorkItem
(
538329
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
SuppressLinkBreakInIfElseStatement
()
{
...
...
@@ -3349,7 +3349,7 @@ static void Main(string[] args)
}"
);
}
[
WorkItem
(
538464
)]
[
WorkItem
(
538464
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
BugFix4087
()
{
...
...
@@ -3369,7 +3369,7 @@ static void Main(string[] args)
}
[
Fact
]
[
WorkItem
(
538511
)]
[
WorkItem
(
538511
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
AttributeTargetSpecifier
()
{
...
...
@@ -3393,7 +3393,7 @@ void Test()
}
[
Fact
]
[
WorkItem
(
538635
)]
[
WorkItem
(
538635
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
Finalizer
()
{
...
...
@@ -3411,7 +3411,7 @@ public void Finalizer()
}
[
Fact
]
[
WorkItem
(
538743
)]
[
WorkItem
(
538743
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
BugFix4442
()
{
...
...
@@ -3429,7 +3429,7 @@ static void Main(string[] args)
}
[
Fact
]
[
WorkItem
(
538658
)]
[
WorkItem
(
538658
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
BugFix4328
()
{
...
...
@@ -3451,7 +3451,7 @@ static void Main(string[] args)
}
[
Fact
]
[
WorkItem
(
538658
)]
[
WorkItem
(
538658
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
BugFix4515
()
{
...
...
@@ -3518,7 +3518,7 @@ static void Main(string[] args)
AssertFormat
(
expected
,
code
);
}
[
WorkItem
(
539259
)]
[
WorkItem
(
539259
,
"DevDiv"
)]
[
Fact
]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
BugFix5143
()
...
...
@@ -3542,7 +3542,7 @@ static void Main(string[] args)
AssertFormat
(
expected
,
code
);
}
[
WorkItem
(
539338
)]
[
WorkItem
(
539338
,
"DevDiv"
)]
[
Fact
]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
BugFix5251
()
...
...
@@ -3558,7 +3558,7 @@ public void BugFix5251()
AssertFormat
(
expected
,
code
);
}
[
WorkItem
(
539358
)]
[
WorkItem
(
539358
,
"DevDiv"
)]
[
Fact
]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
BugFix5277
()
...
...
@@ -3574,7 +3574,7 @@ public void BugFix5277()
AssertFormat
(
expected
,
code
);
}
[
WorkItem
(
539542
)]
[
WorkItem
(
539542
,
"DevDiv"
)]
[
Fact
]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
BugFix5544
()
...
...
@@ -3602,7 +3602,7 @@ unsafe static void Main(string[] args)
AssertFormat
(
expected
,
code
);
}
[
WorkItem
(
539587
)]
[
WorkItem
(
539587
,
"DevDiv"
)]
[
Fact
]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
BugFix5602
()
...
...
@@ -3624,7 +3624,7 @@ public static void func()
AssertFormat
(
expected
,
code
);
}
[
WorkItem
(
539616
)]
[
WorkItem
(
539616
,
"DevDiv"
)]
[
Fact
]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
BugFix5637
()
...
...
@@ -3666,7 +3666,7 @@ class N : Bug<T[]>
}
[
Fact
]
[
WorkItem
(
539878
)]
[
WorkItem
(
539878
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
BugFix5978
()
{
...
...
@@ -3712,7 +3712,7 @@ static void Main(string[] args)
}
[
Fact
]
[
WorkItem
(
539878
)]
[
WorkItem
(
539878
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
BugFix5979
()
{
...
...
@@ -3744,7 +3744,7 @@ static void Main(string[] args)
}
[
Fact
]
[
WorkItem
(
539891
)]
[
WorkItem
(
539891
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
BugFix5993
()
{
...
...
@@ -3774,7 +3774,7 @@ public static void Main()
}
[
Fact
]
[
WorkItem
(
540315
)]
[
WorkItem
(
540315
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
BugFix6536
()
{
...
...
@@ -3796,7 +3796,7 @@ public static void Main()
}
[
Fact
]
[
WorkItem
(
540801
)]
[
WorkItem
(
540801
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
BugFix7211
()
{
...
...
@@ -3825,7 +3825,7 @@ static void Main(string[] args)
}
[
Fact
]
[
WorkItem
(
541035
)]
[
WorkItem
(
541035
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
BugFix7564_1
()
{
...
...
@@ -3854,7 +3854,7 @@ static void Main(string[] args)
}
[
Fact
]
[
WorkItem
(
541035
)]
[
WorkItem
(
541035
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
BugFix7564_2
()
{
...
...
@@ -3906,7 +3906,7 @@ void M()
}
[
Fact
]
[
WorkItem
(
541925
)]
[
WorkItem
(
541925
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
QueryContinuation
()
{
...
...
@@ -3962,7 +3962,7 @@ static void Main(string[] args)
}
[
Fact
]
[
WorkItem
(
542305
)]
[
WorkItem
(
542305
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
AttributeFormatting1
()
{
...
...
@@ -3983,7 +3983,7 @@ void AddClass(string name, [OptionalAttribute] object position, [OptionalAttr
}
[
Fact
]
[
WorkItem
(
542304
)]
[
WorkItem
(
542304
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
CloseBracesInArgumentList
()
{
...
...
@@ -4018,7 +4018,7 @@ static void Main(string[] args)
}
[
Fact
]
[
WorkItem
(
542538
)]
[
WorkItem
(
542538
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
MissingTokens
()
{
...
...
@@ -4046,7 +4046,7 @@ public innerClass()
}
[
Fact
]
[
WorkItem
(
542199
)]
[
WorkItem
(
542199
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
ColumnOfVeryFirstToken
()
{
...
...
@@ -4058,7 +4058,7 @@ public void ColumnOfVeryFirstToken()
}
[
Fact
]
[
WorkItem
(
542718
)]
[
WorkItem
(
542718
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
EmptySuppressionSpan
()
{
...
...
@@ -4076,7 +4076,7 @@ public void EmptySuppressionSpan()
}
[
Fact
]
[
WorkItem
(
542790
)]
[
WorkItem
(
542790
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
LabelInSwitch
()
{
...
...
@@ -4118,7 +4118,7 @@ public static void Main()
}
[
Fact
]
[
WorkItem
(
543112
)]
[
WorkItem
(
543112
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
FormatArbitaryNode
()
{
...
...
@@ -4161,7 +4161,7 @@ public void FormatArbitaryNode()
}
[
Fact
]
[
WorkItem
(
543140
)]
[
WorkItem
(
543140
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
OmittedTypeArgument
()
{
...
...
@@ -4193,7 +4193,7 @@ static void Main(string[] args)
}
[
Fact
]
[
WorkItem
(
543131
)]
[
WorkItem
(
543131
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
TryAfterLabel
()
{
...
...
@@ -4371,7 +4371,7 @@ void bar()
}
[
Fact
]
[
WorkItem
(
545335
)]
[
WorkItem
(
545335
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
PreprocessorOnSameLine
()
{
...
...
@@ -4392,7 +4392,7 @@ public void PreprocessorOnSameLine()
}
[
Fact
]
[
WorkItem
(
545626
)]
[
WorkItem
(
545626
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
ArraysInAttributes
()
{
...
...
@@ -4412,7 +4412,7 @@ public class A : Attribute
}
[
Fact
]
[
WorkItem
(
530580
)]
[
WorkItem
(
530580
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
NoNewLineAfterBraceInExpression
()
{
...
...
@@ -4440,7 +4440,7 @@ void Method()
}
[
Fact
]
[
WorkItem
(
530580
)]
[
WorkItem
(
530580
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
NoIndentForNestedUsingWithoutBraces
()
{
...
...
@@ -4472,7 +4472,7 @@ void M()
}
[
Fact
]
[
WorkItem
(
546678
)]
[
WorkItem
(
546678
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
UnicodeWhitespace
()
{
...
...
@@ -4611,7 +4611,7 @@ void F()
}
[
Fact
]
[
WorkItem
(
772313
)]
[
WorkItem
(
772313
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
Bugfix_772313_ReturnKeywordBeforeQueryClauseDoesNotTriggerNewLineOnFormat
()
{
...
...
@@ -4636,7 +4636,7 @@ int M()
}
[
Fact
]
[
WorkItem
(
772304
)]
[
WorkItem
(
772304
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
Bugfix_772313_PreserveMethodParameterIndentWhenAttributePresent
()
{
...
...
@@ -4699,7 +4699,7 @@ List<bool> b
}
[
Fact
]
[
WorkItem
(
776513
)]
[
WorkItem
(
776513
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
Bugfix_776513_CheckBraceIfNotMissingBeforeApplyingOperationForBracedBlocks
()
{
...
...
@@ -4711,7 +4711,7 @@ public void Bugfix_776513_CheckBraceIfNotMissingBeforeApplyingOperationForBraced
AssertFormat
(
expected
,
code
);
}
[
WorkItem
(
769342
)]
[
WorkItem
(
769342
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
ShouldFormatDocCommentWithIndentSameAsTabSizeWithUseTabTrue
()
{
...
...
@@ -4736,7 +4736,7 @@ class Program
}"
,
changedOptionSet
:
optionSet
);
}
[
WorkItem
(
797278
)]
[
WorkItem
(
797278
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
TestSpacingOptionAroundControlFlow
()
{
...
...
@@ -4792,7 +4792,7 @@ public void foo()
AssertFormat
(
expected
,
code
,
changedOptionSet
:
optionSet
);
}
[
WorkItem
(
766212
)]
[
WorkItem
(
766212
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
TestOptionForSpacingAroundCommas
()
{
...
...
@@ -4842,7 +4842,7 @@ public void Main()
}
[
Fact
]
[
WorkItem
(
772308
)]
[
WorkItem
(
772308
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
Bugfix_772308_SeparateSuppressionForEachCaseLabelEvenIfEmpty
()
{
...
...
@@ -4883,7 +4883,7 @@ int M()
}
[
Fact
]
[
WorkItem
(
849870
)]
[
WorkItem
(
849870
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
PropertyAccessorOptionOff
()
{
...
...
@@ -4922,7 +4922,7 @@ class C
}
[
Fact
]
[
WorkItem
(
844913
)]
[
WorkItem
(
844913
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
QueryExpressionInExpression
()
{
...
...
@@ -4983,7 +4983,7 @@ public void CreateSettingsFile(string path, string comment)
}
[
Fact
]
[
WorkItem
(
843479
)]
[
WorkItem
(
843479
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
EmbeddedStatementElse
()
{
...
...
@@ -5018,7 +5018,7 @@ void Method()
}
[
Fact
]
[
WorkItem
(
772311
)]
[
WorkItem
(
772311
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
CommentAtTheEndOfLine
()
{
...
...
@@ -5055,7 +5055,7 @@ static void Main(string[] args)
}
[
Fact
]
[
WorkItem
(
772311
)]
[
WorkItem
(
772311
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
TestTab
()
{
...
...
@@ -5247,7 +5247,7 @@ class Program
AssertFormat
(
expected
,
code
,
changedOptionSet
:
options
);
}
[
WorkItem
(
917351
)]
[
WorkItem
(
917351
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
TestLockStatement
()
{
...
...
Src/Workspaces/CSharpTest/Formatting/FormattingTriviaTests.cs
浏览文件 @
73330d9a
...
...
@@ -1334,7 +1334,7 @@ public void MixAll()
AssertFormat
(
expected
,
content
);
}
[
WorkItem
(
537895
)]
[
WorkItem
(
537895
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
Preprocessor9
()
{
...
...
@@ -1366,7 +1366,7 @@ void Method()
AssertFormat
(
expected
,
content
);
}
[
WorkItem
(
537895
)]
[
WorkItem
(
537895
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
Preprocessor10
()
{
...
...
@@ -1396,7 +1396,7 @@ void Method()
AssertFormat
(
expected
,
content
);
}
[
WorkItem
(
537765
)]
[
WorkItem
(
537765
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
Comment25
()
{
...
...
@@ -1423,7 +1423,7 @@ public void Comment25()
AssertFormat
(
expected
,
content
);
}
[
WorkItem
(
537765
)]
[
WorkItem
(
537765
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
Comment26
()
{
...
...
@@ -1551,7 +1551,7 @@ static void Main(string[] args)
AssertFormat
(
code
,
content
);
}
[
WorkItem
(
538703
)]
[
WorkItem
(
538703
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
Comment32
()
{
...
...
@@ -1576,7 +1576,7 @@ public void Comment32()
AssertFormat
(
code
,
content
);
}
[
WorkItem
(
542316
)]
[
WorkItem
(
542316
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
CommentInExpression
()
{
...
...
@@ -1613,7 +1613,7 @@ static void Main(string[] args)
AssertFormat
(
code
,
content
);
}
[
WorkItem
(
542546
)]
[
WorkItem
(
542546
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
FormatInvalidCode_1
()
{
...
...
@@ -1621,7 +1621,7 @@ public void FormatInvalidCode_1()
AssertFormat
(
content
,
content
);
}
[
WorkItem
(
542546
)]
[
WorkItem
(
542546
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
FormatInvalidCode_2
()
{
...
...
@@ -1630,7 +1630,7 @@ public void FormatInvalidCode_2()
AssertFormat
(
expectedContent
,
content
);
}
[
WorkItem
(
537895
)]
[
WorkItem
(
537895
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Formatting
)]
public
void
EmbededStatement1
()
{
...
...
Src/Workspaces/CoreTest/CodeCleanup/AddMissingTokensTests.cs
浏览文件 @
73330d9a
...
...
@@ -77,7 +77,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
544318
)]
[
WorkItem
(
544318
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
MethodInvocation_TypeArgParens
()
{
...
...
@@ -881,7 +881,7 @@ public void StringLiterals_NoTrailingTriviaProblem()
}
[
Fact
]
[
WorkItem
(
544225
)]
[
WorkItem
(
544225
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
StringLiterals_AfterRegion
()
{
...
...
@@ -891,7 +891,7 @@ public void StringLiterals_AfterRegion()
}
[
Fact
]
[
WorkItem
(
544225
)]
[
WorkItem
(
544225
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
StringLiterals_AfterConst
()
{
...
...
@@ -901,7 +901,7 @@ public void StringLiterals_AfterConst()
}
[
Fact
]
[
WorkItem
(
544225
)]
[
WorkItem
(
544225
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
StructuredTrivia_Expression_DontCrash
()
{
...
...
@@ -921,7 +921,7 @@ public void StructuredTrivia_Expression_DontCrash()
}
[
Fact
]
[
WorkItem
(
544169
)]
[
WorkItem
(
544169
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
EventStatement_AsClause
()
{
...
...
@@ -938,7 +938,7 @@ Class Foo
}
[
Fact
]
[
WorkItem
(
544167
)]
[
WorkItem
(
544167
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
InvocationExpression_NoParentheseForPredefinedCastExpression
()
{
...
...
@@ -957,8 +957,8 @@ End Sub
}
[
Fact
]
[
WorkItem
(
544178
)]
[
WorkItem
(
544317
)]
[
WorkItem
(
544178
,
"DevDiv"
)]
[
WorkItem
(
544317
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
ObjectCreationExpression
()
{
...
...
@@ -977,7 +977,7 @@ End Function
}
[
Fact
]
[
WorkItem
(
544317
)]
[
WorkItem
(
544317
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
ObjectCreationExpression_Initializer
()
{
...
...
@@ -1000,7 +1000,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
544178
)]
[
WorkItem
(
544178
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
ObjectCreationExpression_GenericName
()
{
...
...
@@ -1024,7 +1024,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
544178
)]
[
WorkItem
(
544178
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
ObjectCreationExpression_AsNewClause
()
{
...
...
@@ -1039,7 +1039,7 @@ public void ObjectCreationExpression_AsNewClause()
}
[
Fact
]
[
WorkItem
(
544301
)]
[
WorkItem
(
544301
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
ContinueStatement_While
()
{
...
...
@@ -1062,7 +1062,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
544301
)]
[
WorkItem
(
544301
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
ContinueStatement_For
()
{
...
...
@@ -1085,7 +1085,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
544380
)]
[
WorkItem
(
544380
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
IfDirective
()
{
...
...
@@ -1102,7 +1102,7 @@ Class C
}
[
Fact
]
[
WorkItem
(
544386
)]
[
WorkItem
(
544386
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
NamedFieldInitializer
()
{
...
...
@@ -1127,7 +1127,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
544526
)]
[
WorkItem
(
544526
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
DontCrash_ImplementsStatement
()
{
...
...
@@ -1146,7 +1146,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
544525
)]
[
WorkItem
(
544525
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
AccessorStatement_AddRemoveHandler_RaiseEvent
()
{
...
...
@@ -1175,7 +1175,7 @@ End Event
}
[
Fact
]
[
WorkItem
(
545176
)]
[
WorkItem
(
545176
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
CallStatement_Lambda
()
{
...
...
@@ -1194,7 +1194,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
545256
)]
[
WorkItem
(
545256
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
HandlesClauseItem_DontAddParenthese
()
{
...
...
@@ -1213,7 +1213,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
545380
)]
[
WorkItem
(
545380
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
DontAddParentheseInForEachControlVariable
()
{
...
...
@@ -1238,7 +1238,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
545380
)]
[
WorkItem
(
545380
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
DontAddParentheseInForControlVariable
()
{
...
...
@@ -1263,7 +1263,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
545483
)]
[
WorkItem
(
545483
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
DontAddParentheseForMissingName
()
{
...
...
@@ -1276,7 +1276,7 @@ public void DontAddParentheseForMissingName()
}
[
Fact
]
[
WorkItem
(
545483
)]
[
WorkItem
(
545483
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
CombinedDelegates
()
{
...
...
@@ -1303,7 +1303,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
546581
)]
[
WorkItem
(
546581
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
ThenOmittedWithSurroundingErrors
()
{
...
...
@@ -1316,7 +1316,7 @@ public void ThenOmittedWithSurroundingErrors()
}
[
Fact
]
[
WorkItem
(
546581
)]
[
WorkItem
(
546581
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
ThenOmittedWithSurroundingErrors1
()
{
...
...
@@ -1329,7 +1329,7 @@ public void ThenOmittedWithSurroundingErrors1()
}
[
Fact
]
[
WorkItem
(
546797
)]
[
WorkItem
(
546797
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
ParenthesisWithLineContinuation
()
{
...
...
@@ -1341,7 +1341,7 @@ public void ParenthesisWithLineContinuation()
}
[
Fact
]
[
WorkItem
(
546806
)]
[
WorkItem
(
546806
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
ThenWithLineContinuation
()
{
...
...
@@ -1357,7 +1357,7 @@ public void ThenWithLineContinuation()
}
[
Fact
]
[
WorkItem
(
531278
)]
[
WorkItem
(
531278
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
ThenInIfDirective
()
{
...
...
@@ -1385,7 +1385,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
607792
)]
[
WorkItem
(
607792
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
CaseKeywordInSelectStatement
()
{
...
...
@@ -1427,7 +1427,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
530789
)]
[
WorkItem
(
530789
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
Bug530789
()
{
...
...
@@ -1449,7 +1449,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
530039
)]
[
WorkItem
(
530039
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
TestArraySyntax
()
{
...
...
@@ -1471,7 +1471,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
602932
)]
[
WorkItem
(
602932
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
TestAsyncFunctionWithoutAsClause
()
{
...
...
@@ -1559,7 +1559,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
602932
)]
[
WorkItem
(
602932
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
TestAsyncFunctionWithoutAsClause_WithAddedImports
()
{
...
...
@@ -1653,7 +1653,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
602932
)]
[
WorkItem
(
602932
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
TestIteratorFunctionWithoutAsClause
()
{
...
...
@@ -1735,7 +1735,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
602932
)]
[
WorkItem
(
602932
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
TestIteratorFunctionWithoutAsClause_WithAddedImports
()
{
...
...
@@ -1825,7 +1825,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
602932
)]
[
WorkItem
(
602932
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
TestAsyncFunctionWithAsClause
()
{
...
...
@@ -1995,7 +1995,7 @@ End Function
}
[
Fact
]
[
WorkItem
(
602932
)]
[
WorkItem
(
602932
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
TestAsyncFunctionWithAsClause_WithAddedImports
()
{
...
...
@@ -2171,7 +2171,7 @@ End Function
}
[
Fact
]
[
WorkItem
(
602932
)]
[
WorkItem
(
602932
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
TestIteratorFunctionWithAsClause
()
{
...
...
@@ -2367,7 +2367,7 @@ End Function
}
[
Fact
]
[
WorkItem
(
602932
)]
[
WorkItem
(
602932
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
TestIteratorFunctionWithAsClause_WithAddedImports
()
{
...
...
@@ -2569,7 +2569,7 @@ End Function
}
[
Fact
]
[
WorkItem
(
602932
)]
[
WorkItem
(
602932
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
TestAsyncFunctionWithAliasedReturnType
()
{
...
...
@@ -2599,7 +2599,7 @@ End Function
}
[
Fact
]
[
WorkItem
(
602932
)]
[
WorkItem
(
602932
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
TestIteratorFunctionWithAliasedReturnType
()
{
...
...
@@ -2629,7 +2629,7 @@ End Function
}
[
Fact
]
[
WorkItem
(
602932
)]
[
WorkItem
(
602932
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
TestAsyncFunctionWithAliasedReturnType_2
()
{
...
...
@@ -2657,7 +2657,7 @@ End Function
}
[
Fact
]
[
WorkItem
(
602932
)]
[
WorkItem
(
602932
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
TestIteratorFunctionWithAliasedReturnType_2
()
{
...
...
@@ -2685,7 +2685,7 @@ End Function
}
[
Fact
]
[
WorkItem
(
602932
)]
[
WorkItem
(
602932
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
TestAsyncFunctionWithQualifiedNameReturnType
()
{
...
...
@@ -2711,7 +2711,7 @@ End Function
}
[
Fact
]
[
WorkItem
(
602932
)]
[
WorkItem
(
602932
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
TestIteratorFunctionWithQualifiedNameReturnType
()
{
...
...
@@ -2737,7 +2737,7 @@ End Function
}
[
Fact
]
[
WorkItem
(
602932
)]
[
WorkItem
(
602932
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
TestAsyncLambdaFunction
()
{
...
...
@@ -2805,7 +2805,7 @@ End Function
}
[
Fact
]
[
WorkItem
(
602932
)]
[
WorkItem
(
602932
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
AddMissingTokens
)]
public
void
TestIteratorLambdaFunction
()
{
...
...
Src/Workspaces/CoreTest/CodeCleanup/CodeCleanupTests.cs
浏览文件 @
73330d9a
...
...
@@ -225,7 +225,7 @@ Imports System.Diagnostics
}
[
Fact
]
[
WorkItem
(
774295
)]
[
WorkItem
(
774295
,
"DevDiv"
)]
public
void
DontCrash_VB_2
()
{
var
code
=
@"
...
...
@@ -262,7 +262,7 @@ End Class
}
[
Fact
]
[
WorkItem
(
547075
)]
[
WorkItem
(
547075
,
"DevDiv"
)]
public
void
TestCodeCleanupWithinNonStructuredTrivia
()
{
var
code
=
@"
...
...
Src/Workspaces/CoreTest/CodeCleanup/FixIncorrectTokenTests.cs
浏览文件 @
73330d9a
...
...
@@ -723,7 +723,7 @@ End Module
}
[
Fact
]
[
WorkItem
(
606015
)]
[
WorkItem
(
606015
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
FixIncorrectTokens
)]
public
void
FixFullWidthSingleQuotes
()
{
...
...
@@ -750,7 +750,7 @@ public void FixFullWidthSingleQuotes()
}
[
Fact
]
[
WorkItem
(
707135
)]
[
WorkItem
(
707135
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
FixIncorrectTokens
)]
public
void
FixFullWidthSingleQuotes2
()
{
...
...
Src/Workspaces/CoreTest/CodeCleanup/NormalizeModifiersOrOperatorsTests.cs
浏览文件 @
73330d9a
...
...
@@ -631,7 +631,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
544520
)]
[
WorkItem
(
544520
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
NormalizeModifiersOrOperators
)]
public
void
RemoveByVal1
()
{
...
...
@@ -649,7 +649,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
544520
)]
[
WorkItem
(
544520
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
NormalizeModifiersOrOperators
)]
public
void
RemoveByVal2
()
{
...
...
@@ -667,7 +667,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
544520
)]
[
WorkItem
(
544520
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
NormalizeModifiersOrOperators
)]
public
void
RemoveByVal_LineContinuation
()
{
...
...
@@ -816,7 +816,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
544300
)]
[
WorkItem
(
544300
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
NormalizeModifiersOrOperators
)]
public
void
NormalizedOperator_StructuredTrivia
()
{
...
...
@@ -828,7 +828,7 @@ public void NormalizedOperator_StructuredTrivia()
}
[
Fact
]
[
WorkItem
(
544520
)]
[
WorkItem
(
544520
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
NormalizeModifiersOrOperators
)]
public
void
DontRemoveByVal
()
{
...
...
@@ -852,7 +852,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
544561
)]
[
WorkItem
(
544561
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
NormalizeModifiersOrOperators
)]
public
void
NormalizeOperator_Text
()
{
...
...
@@ -876,7 +876,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
544557
)]
[
WorkItem
(
544557
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
NormalizeModifiersOrOperators
)]
public
void
NormalizeOperator_OperatorStatement
()
{
...
...
@@ -892,7 +892,7 @@ public void NormalizeOperator_OperatorStatement()
}
[
Fact
]
[
WorkItem
(
544574
)]
[
WorkItem
(
544574
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
NormalizeModifiersOrOperators
)]
public
void
Reorder_OperatorTokenAndModifiers
()
{
...
...
@@ -908,7 +908,7 @@ public void Reorder_OperatorTokenAndModifiers()
}
[
Fact
]
[
WorkItem
(
546521
)]
[
WorkItem
(
546521
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
NormalizeModifiersOrOperators
)]
public
void
SkippedTokenOperator
()
{
...
...
@@ -928,7 +928,7 @@ End Operator
}
[
Fact
]
[
WorkItem
(
547255
)]
[
WorkItem
(
547255
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
NormalizeModifiersOrOperators
)]
public
void
ReorderAsyncModifier
()
{
...
...
@@ -964,7 +964,7 @@ End Function
}
[
Fact
]
[
WorkItem
(
547255
)]
[
WorkItem
(
547255
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
NormalizeModifiersOrOperators
)]
public
void
ReorderIteratorModifier
()
{
...
...
@@ -1000,7 +1000,7 @@ End Function
}
[
Fact
]
[
WorkItem
(
611766
)]
[
WorkItem
(
611766
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
NormalizeModifiersOrOperators
)]
public
void
ReorderDuplicateModifiers
()
{
...
...
@@ -1028,7 +1028,7 @@ End Function
}
[
Fact
]
[
WorkItem
(
530058
)]
[
WorkItem
(
530058
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
NormalizeModifiersOrOperators
)]
public
void
TestBadOperatorToken
()
{
...
...
Src/Workspaces/CoreTest/CodeCleanup/ReduceTokenTests.cs
浏览文件 @
73330d9a
...
...
@@ -1752,7 +1752,7 @@ End Module
}
[
Fact
]
[
WorkItem
(
623319
)]
[
WorkItem
(
623319
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
ReduceTokens
)]
public
void
ReduceFloatingAndDecimalLiteralsWithDifferentCulture
()
{
...
...
@@ -1789,7 +1789,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
652147
)]
[
WorkItem
(
652147
,
"DevDiv"
)]
public
void
ReduceFloatingAndDecimalLiteralsWithInvariantCultureNegatives
()
{
var
oldCulture
=
Thread
.
CurrentThread
.
CurrentCulture
;
...
...
Src/Workspaces/CoreTest/CodeCleanup/RemoveUnnecessaryLineContinuationTests.cs
浏览文件 @
73330d9a
...
...
@@ -583,7 +583,7 @@ _ _
}
[
Fact
]
[
WorkItem
(
544470
)]
[
WorkItem
(
544470
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
RemoveUnnecessaryLineContinuation
)]
public
void
AttributeTargetColon
()
{
...
...
@@ -597,7 +597,7 @@ public void AttributeTargetColon()
}
[
Fact
]
[
WorkItem
(
529428
)]
[
WorkItem
(
529428
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
RemoveUnnecessaryLineContinuation
)]
public
void
LineContinuationInImport
()
{
...
...
@@ -613,7 +613,7 @@ public void LineContinuationInImport()
}
[
Fact
]
[
WorkItem
(
529425
)]
[
WorkItem
(
529425
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
RemoveUnnecessaryLineContinuation
)]
public
void
ColonInOption
()
{
...
...
@@ -625,7 +625,7 @@ public void ColonInOption()
}
[
Fact
]
[
WorkItem
(
544524
)]
[
WorkItem
(
544524
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
RemoveUnnecessaryLineContinuation
)]
public
void
LineContinuationInNamedFieldInitializer
()
{
...
...
@@ -653,7 +653,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
544523
)]
[
WorkItem
(
544523
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
RemoveUnnecessaryLineContinuation
)]
public
void
IfPart_Colon1
()
{
...
...
@@ -675,7 +675,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
544523
)]
[
WorkItem
(
544523
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
RemoveUnnecessaryLineContinuation
)]
public
void
IfPart_Colon2
()
{
...
...
@@ -697,7 +697,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
544523
)]
[
WorkItem
(
544523
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
RemoveUnnecessaryLineContinuation
)]
public
void
IfPart_Colon3
()
{
...
...
@@ -719,7 +719,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
544523
)]
[
WorkItem
(
544523
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
RemoveUnnecessaryLineContinuation
)]
public
void
IfPart_Colon4
()
{
...
...
@@ -741,7 +741,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
544521
)]
[
WorkItem
(
544521
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
RemoveUnnecessaryLineContinuation
)]
public
void
LabelColon
()
{
...
...
@@ -761,7 +761,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
544521
)]
[
WorkItem
(
544521
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
RemoveUnnecessaryLineContinuation
)]
public
void
LabelColon_ColonTrivia
()
{
...
...
@@ -781,7 +781,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
544520
)]
[
WorkItem
(
544520
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
RemoveUnnecessaryLineContinuation
)]
public
void
LineContinuation_MixedWithImplicitLineContinuation
()
{
...
...
@@ -805,7 +805,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
544549
)]
[
WorkItem
(
544549
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
RemoveUnnecessaryLineContinuation
)]
public
void
ColonTrivia_EndOfFile
()
{
...
...
@@ -819,7 +819,7 @@ public void ColonTrivia_EndOfFile()
}
[
Fact
]
[
WorkItem
(
545538
)]
[
WorkItem
(
545538
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
RemoveUnnecessaryLineContinuation
)]
public
void
ColonTriviaBeforeCommentTrivia
()
{
...
...
@@ -839,7 +839,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
545540
)]
[
WorkItem
(
545540
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
RemoveUnnecessaryLineContinuation
)]
public
void
InsideWithStatementWithMemberCall
()
{
...
...
@@ -865,7 +865,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
545540
)]
[
WorkItem
(
545540
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
RemoveUnnecessaryLineContinuation
)]
public
void
InsideWithStatementWithMemberCall2
()
{
...
...
@@ -891,7 +891,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
545540
)]
[
WorkItem
(
545540
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
RemoveUnnecessaryLineContinuation
)]
public
void
InsideWithStatementWithMemberCall3
()
{
...
...
@@ -917,7 +917,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
545540
)]
[
WorkItem
(
545540
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
RemoveUnnecessaryLineContinuation
)]
public
void
InsideWithStatementWithMemberCall4
()
{
...
...
@@ -943,7 +943,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
607791
)]
[
WorkItem
(
607791
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
RemoveUnnecessaryLineContinuation
)]
public
void
InsideWithStatementWithDictionaryAccess
()
{
...
...
@@ -973,7 +973,7 @@ End Module
}
[
Fact
]
[
WorkItem
(
607791
)]
[
WorkItem
(
607791
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
RemoveUnnecessaryLineContinuation
)]
public
void
InsideWithStatementWithDictionaryAccess2
()
{
...
...
@@ -1001,7 +1001,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
529821
)]
[
WorkItem
(
529821
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
RemoveUnnecessaryLineContinuation
)]
public
void
InsideObjectInitializer
()
{
...
...
@@ -1033,7 +1033,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
545545
)]
[
WorkItem
(
545545
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
RemoveUnnecessaryLineContinuation
)]
public
void
LineContinuationBetweenXmlAndDot
()
{
...
...
@@ -1055,7 +1055,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
545545
)]
[
WorkItem
(
545545
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
RemoveUnnecessaryLineContinuation
)]
public
void
LineContinuationBetweenXmlAndDot1
()
{
...
...
@@ -1077,7 +1077,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
545565
)]
[
WorkItem
(
545565
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
RemoveUnnecessaryLineContinuation
)]
public
void
LineContinuationBeforeFromQueryExpression
()
{
...
...
@@ -1099,7 +1099,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
545565
)]
[
WorkItem
(
545565
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
RemoveUnnecessaryLineContinuation
)]
public
void
LineContinuationBeforeFromAggregateExpression
()
{
...
...
@@ -1121,7 +1121,7 @@ End Sub
}
[
Fact
]
[
WorkItem
(
530635
)]
[
WorkItem
(
530635
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
RemoveUnnecessaryLineContinuation
)]
public
void
LineContinuationAtEndOfLambdaExpression1
()
{
...
...
@@ -1149,7 +1149,7 @@ Implements I.A
}
[
Fact
]
[
WorkItem
(
530635
)]
[
WorkItem
(
530635
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
RemoveUnnecessaryLineContinuation
)]
public
void
LineContinuationAtEndOfLambdaExpression2
()
{
...
...
@@ -1181,7 +1181,7 @@ Implements I.A
}
[
Fact
]
[
WorkItem
(
546798
)]
[
WorkItem
(
546798
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
RemoveUnnecessaryLineContinuation
)]
public
void
LineContinuationAfterDot
()
{
...
...
@@ -1197,8 +1197,8 @@ System.Diagnostics. _
}
[
Fact
]
[
WorkItem
(
530621
)]
[
WorkItem
(
631933
)]
[
WorkItem
(
530621
,
"DevDiv"
)]
[
WorkItem
(
631933
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
RemoveUnnecessaryLineContinuation
)]
public
void
DontRemoveLineContinuationAfterColonInSingleLineIfStatement
()
{
...
...
@@ -1216,8 +1216,8 @@ Exit Sub
}
[
Fact
]
[
WorkItem
(
609481
)]
[
WorkItem
(
631933
)]
[
WorkItem
(
609481
,
"DevDiv"
)]
[
WorkItem
(
631933
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
RemoveUnnecessaryLineContinuation
)]
public
void
DontRemoveLineContinuationInSingleLineIfStatement
()
{
...
...
@@ -1248,8 +1248,8 @@ End Module
}
[
Fact
]
[
WorkItem
(
609481
)]
[
WorkItem
(
631933
)]
[
WorkItem
(
609481
,
"DevDiv"
)]
[
WorkItem
(
631933
,
"DevDiv"
)]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
RemoveUnnecessaryLineContinuation
)]
public
void
DontRemoveLineContinuationInNestedSingleLineIfStatement
()
{
...
...
Src/Workspaces/CoreTest/DocumentationCommentTests.cs
浏览文件 @
73330d9a
...
...
@@ -51,7 +51,7 @@ public void ParseTagWithMultipleSummaries()
Assert
.
Equal
(
"Summary 1"
,
comment
.
SummaryText
);
}
[
WorkItem
(
522741
)]
[
WorkItem
(
522741
,
"DevDiv"
)]
[
Fact
(
Skip
=
"Bug 522741"
)]
public
void
ParseTagWithMultiLineComments
()
{
...
...
@@ -111,7 +111,7 @@ public void PreserveExceptionTypeOrdering()
Assert
.
Equal
(
"b"
,
comment
.
ExceptionTypes
[
2
]);
}
[
Fact
,
WorkItem
(
546732
)]
[
Fact
,
WorkItem
(
546732
,
"DevDiv"
)]
public
void
UnknownTag
()
{
var
comment
=
DocumentationComment
.
FromXmlFragment
(
...
...
@@ -124,7 +124,7 @@ public void UnknownTag()
Assert
.
Equal
(
"The param named 'a'"
,
comment
.
GetParameterText
(
"a"
));
}
[
Fact
,
WorkItem
(
546732
)]
[
Fact
,
WorkItem
(
546732
,
"DevDiv"
)]
public
void
TextOutsideTag
()
{
var
comment
=
DocumentationComment
.
FromXmlFragment
(
...
...
@@ -137,7 +137,7 @@ public void TextOutsideTag()
Assert
.
Equal
(
"The param named 'a'"
,
comment
.
GetParameterText
(
"a"
));
}
[
Fact
,
WorkItem
(
546732
)]
[
Fact
,
WorkItem
(
546732
,
"DevDiv"
)]
public
void
SingleTopLevelTag
()
{
var
comment
=
DocumentationComment
.
FromXmlFragment
(
...
...
@@ -152,7 +152,7 @@ public void SingleTopLevelTag()
Assert
.
Equal
(
"The param named 'a'"
,
comment
.
GetParameterText
(
"a"
));
}
[
Fact
,
WorkItem
(
530760
)]
[
Fact
,
WorkItem
(
530760
,
"DevDiv"
)]
public
void
MultipleParamsWithSameName
()
{
var
comment
=
DocumentationComment
.
FromXmlFragment
(
...
...
@@ -164,7 +164,7 @@ public void MultipleParamsWithSameName()
Assert
.
Equal
(
"This comment should be retained."
,
comment
.
GetParameterText
(
"a"
));
}
[
Fact
,
WorkItem
(
530760
)]
[
Fact
,
WorkItem
(
530760
,
"DevDiv"
)]
public
void
MultipleTypeParamsWithSameName
()
{
var
comment
=
DocumentationComment
.
FromXmlFragment
(
...
...
@@ -176,7 +176,7 @@ public void MultipleTypeParamsWithSameName()
Assert
.
Equal
(
"This comment should be retained."
,
comment
.
GetTypeParameterText
(
"a"
));
}
[
Fact
,
WorkItem
(
530760
)]
[
Fact
,
WorkItem
(
530760
,
"DevDiv"
)]
public
void
MultipleExceptionsWithSameName
()
{
var
comment
=
DocumentationComment
.
FromXmlFragment
(
...
...
@@ -196,7 +196,7 @@ public void MultipleExceptionsWithSameName()
Assert
.
Equal
(
"Second B description"
,
comment
.
GetExceptionTexts
(
"B"
)[
1
]);
}
[
Fact
,
WorkItem
(
530760
)]
[
Fact
,
WorkItem
(
530760
,
"DevDiv"
)]
public
void
NoExceptionWithGivenName
()
{
var
comment
=
DocumentationComment
.
FromXmlFragment
(
@"<summary>This is a summary</summary>"
);
...
...
@@ -204,7 +204,7 @@ public void NoExceptionWithGivenName()
Assert
.
Equal
(
0
,
comment
.
GetExceptionTexts
(
"A"
).
Length
);
}
[
Fact
,
WorkItem
(
531189
)]
[
Fact
,
WorkItem
(
531189
,
"DevDiv"
)]
public
void
NoNameAttribute
()
{
var
comment
=
DocumentationComment
.
FromXmlFragment
(
@"<param/><typeparam/><exception/>"
);
...
...
Src/Workspaces/CoreTest/FindReferencesTests.cs
浏览文件 @
73330d9a
...
...
@@ -78,7 +78,7 @@ public class C {
Assert
.
Equal
(
1
,
typeSymbol
.
Locations
.
Count
());
}
[
Fact
,
WorkItem
(
537936
)]
[
Fact
,
WorkItem
(
537936
,
"DevDiv"
)]
public
void
FindReferences_InterfaceMapping
()
{
var
text
=
@"
...
...
Src/Workspaces/CoreTest/MSBuildWorkspaceTests.cs
浏览文件 @
73330d9a
...
...
@@ -31,7 +31,7 @@ public void TestCreateWorkspace()
var
workspace
=
MSBuildWorkspace
.
Create
();
}
[
WorkItem
(
542339
)]
[
WorkItem
(
542339
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Workspace
)]
public
void
TestTemporaryStorageService
()
{
...
...
@@ -48,7 +48,7 @@ public void TestTemporaryStorageService()
Assert
.
Equal
(
bigText
.
ToString
(),
newText
.
ToString
());
}
[
WorkItem
(
552981
)]
[
WorkItem
(
552981
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Workspace
)]
public
void
TestWorkspaceLoadWithDuplicatedGuid
()
{
...
...
@@ -294,7 +294,7 @@ public void TestOpenProjectAsyncWithBadProjectExtension()
}
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Workspace
)]
[
WorkItem
(
739043
)]
[
WorkItem
(
739043
,
"DevDiv"
)]
public
void
TestOpenCSharpProjectAsyncWithoutPrefer32BitAndConsoleApplication
()
{
CreateFiles
(
GetSimpleCSharpSolutionFiles
()
...
...
@@ -306,7 +306,7 @@ public void TestOpenCSharpProjectAsyncWithoutPrefer32BitAndConsoleApplication()
}
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Workspace
)]
[
WorkItem
(
739043
)]
[
WorkItem
(
739043
,
"DevDiv"
)]
public
void
TestOpenCSharpProjectAsyncWithoutPrefer32BitAndLibrary
()
{
CreateFiles
(
GetSimpleCSharpSolutionFiles
()
...
...
@@ -319,7 +319,7 @@ public void TestOpenCSharpProjectAsyncWithoutPrefer32BitAndLibrary()
}
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Workspace
)]
[
WorkItem
(
739043
)]
[
WorkItem
(
739043
,
"DevDiv"
)]
public
void
TestOpenCSharpProjectAsyncWithPrefer32BitAndConsoleApplication
()
{
CreateFiles
(
GetSimpleCSharpSolutionFiles
()
...
...
@@ -331,7 +331,7 @@ public void TestOpenCSharpProjectAsyncWithPrefer32BitAndConsoleApplication()
}
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Workspace
)]
[
WorkItem
(
739043
)]
[
WorkItem
(
739043
,
"DevDiv"
)]
public
void
TestOpenCSharpProjectAsyncWithPrefer32BitAndLibrary
()
{
CreateFiles
(
GetSimpleCSharpSolutionFiles
()
...
...
@@ -344,7 +344,7 @@ public void TestOpenCSharpProjectAsyncWithPrefer32BitAndLibrary()
}
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Workspace
)]
[
WorkItem
(
739043
)]
[
WorkItem
(
739043
,
"DevDiv"
)]
public
void
TestOpenCSharpProjectAsyncWithPrefer32BitAndWinMDObj
()
{
CreateFiles
(
GetSimpleCSharpSolutionFiles
()
...
...
@@ -357,7 +357,7 @@ public void TestOpenCSharpProjectAsyncWithPrefer32BitAndWinMDObj()
}
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Workspace
)]
[
WorkItem
(
739043
)]
[
WorkItem
(
739043
,
"DevDiv"
)]
public
void
TestOpenVBProjectAsyncWithoutPrefer32BitAndConsoleApplication
()
{
CreateFiles
(
GetSimpleCSharpSolutionFiles
()
...
...
@@ -369,7 +369,7 @@ public void TestOpenVBProjectAsyncWithoutPrefer32BitAndConsoleApplication()
}
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Workspace
)]
[
WorkItem
(
739043
)]
[
WorkItem
(
739043
,
"DevDiv"
)]
public
void
TestOpenVBProjectAsyncWithoutPrefer32BitAndLibrary
()
{
CreateFiles
(
GetSimpleCSharpSolutionFiles
()
...
...
@@ -382,7 +382,7 @@ public void TestOpenVBProjectAsyncWithoutPrefer32BitAndLibrary()
}
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Workspace
)]
[
WorkItem
(
739043
)]
[
WorkItem
(
739043
,
"DevDiv"
)]
public
void
TestOpenVBProjectAsyncWithPrefer32BitAndConsoleApplication
()
{
CreateFiles
(
GetSimpleCSharpSolutionFiles
()
...
...
@@ -394,7 +394,7 @@ public void TestOpenVBProjectAsyncWithPrefer32BitAndConsoleApplication()
}
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Workspace
)]
[
WorkItem
(
739043
)]
[
WorkItem
(
739043
,
"DevDiv"
)]
public
void
TestOpenVBProjectAsyncWithPrefer32BitAndLibrary
()
{
CreateFiles
(
GetSimpleCSharpSolutionFiles
()
...
...
@@ -407,7 +407,7 @@ public void TestOpenVBProjectAsyncWithPrefer32BitAndLibrary()
}
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Workspace
)]
[
WorkItem
(
739043
)]
[
WorkItem
(
739043
,
"DevDiv"
)]
public
void
TestOpenVBProjectAsyncWithPrefer32BitAndWinMDObj
()
{
CreateFiles
(
GetSimpleCSharpSolutionFiles
()
...
...
@@ -478,7 +478,7 @@ public void TestLoadWithBadHintPath()
}
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Workspace
)]
[
WorkItem
(
531631
)]
[
WorkItem
(
531631
,
"DevDiv"
)]
public
void
TestLoadWithAssemblyNamePath
()
{
CreateFiles
(
GetSimpleCSharpSolutionFiles
()
...
...
@@ -493,7 +493,7 @@ public void TestLoadWithAssemblyNamePath()
}
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Workspace
)]
[
WorkItem
(
531631
)]
[
WorkItem
(
531631
,
"DevDiv"
)]
public
void
TestLoadWithAssemblyNamePath2
()
{
CreateFiles
(
GetSimpleCSharpSolutionFiles
()
...
...
@@ -564,7 +564,7 @@ public void TestLoadStandaloneProject_WithProjectReferenceThatHasBuiltAssembly()
[
ConditionalFact
(
typeof
(
Framework35Installed
))]
[
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Workspace
)]
[
WorkItem
(
528984
)]
[
WorkItem
(
528984
,
"DevDiv"
)]
public
void
TestLoadStandaloneProject_AddVBDefaultReferences
()
{
string
projectFile
=
"VisualBasicProject_VisualBasicProject_3_5.vbproj"
;
...
...
@@ -1520,7 +1520,7 @@ public void TestSemanticVersionVB()
var
vbdoc8
=
AssertSemanticVersionChanged
(
vbdoc7
,
vbdoc7
.
GetTextAsync
().
Result
.
Replace
(
literal7
.
Span
,
"100"
));
}
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Workspace
),
WorkItem
(
529276
),
WorkItem
(
12086
,
"DevDiv_Projects/Roslyn"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Workspace
),
WorkItem
(
529276
,
"DevDiv"
),
WorkItem
(
12086
,
"DevDiv_Projects/Roslyn"
)]
public
void
TestProjectReferenceLoadStandalone
()
{
var
projPath
=
@"CSharpProject\CSharpProject_ProjectReference.csproj"
;
...
...
@@ -1544,7 +1544,7 @@ public void TestProjectReferenceLoadStandalone()
}
}
[
WorkItem
(
918072
)]
[
WorkItem
(
918072
,
"DevDiv"
)]
[
Fact
(
Skip
=
"918072"
),
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Workspace
)]
public
void
TestAnalyzerReferenceLoadStandalone
()
{
...
...
@@ -1567,7 +1567,7 @@ public void TestAnalyzerReferenceLoadStandalone()
}
}
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Workspace
),
WorkItem
(
546171
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Workspace
),
WorkItem
(
546171
,
"DevDiv"
)]
public
void
TestCSharpExternAlias
()
{
var
projPath
=
@"CSharpProject\CSharpProject_ExternAlias.csproj"
;
...
...
@@ -1588,7 +1588,7 @@ public void TestCSharpExternAlias()
}
}
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Workspace
),
WorkItem
(
530337
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Workspace
),
WorkItem
(
530337
,
"DevDiv"
)]
public
void
TestProjectReferenceWithExternAlias
()
{
var
files
=
GetProjectReferenceSolutionFiles
();
...
...
@@ -1809,7 +1809,7 @@ public void TestLoad_SolutionFileWithEmptyLinesAndWhitespaceOnlyLines()
}
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Workspace
)]
[
WorkItem
(
531543
)]
[
WorkItem
(
531543
,
"DevDiv"
)]
public
void
TestLoad_SolutionFileWithEmptyLineBetweenProjectBlock
()
{
var
files
=
new
FileSet
(
new
Dictionary
<
string
,
object
>
...
...
@@ -1823,7 +1823,7 @@ public void TestLoad_SolutionFileWithEmptyLineBetweenProjectBlock()
}
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Workspace
)]
[
WorkItem
(
531283
)]
[
WorkItem
(
531283
,
"DevDiv"
)]
public
void
TestLoad_SolutionFileWithMissingEndProject
()
{
var
files
=
new
FileSet
(
new
Dictionary
<
string
,
object
>
...
...
@@ -1841,7 +1841,7 @@ public void TestLoad_SolutionFileWithMissingEndProject()
}
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Workspace
)]
[
WorkItem
(
792912
)]
[
WorkItem
(
792912
,
"DevDiv"
)]
public
void
TestLoadSolutionWithDuplicatedGuidsBecomeSelfReferential
()
{
var
files
=
new
FileSet
(
new
Dictionary
<
string
,
object
>
...
...
@@ -1861,7 +1861,7 @@ public void TestLoadSolutionWithDuplicatedGuidsBecomeSelfReferential()
}
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Workspace
)]
[
WorkItem
(
792912
)]
[
WorkItem
(
792912
,
"DevDiv"
)]
public
void
TestLoadSolutionWithDuplicatedGuidsBecomeCircularReferential
()
{
var
files
=
new
FileSet
(
new
Dictionary
<
string
,
object
>
...
...
Src/Workspaces/CoreTest/ProjectDependencyGraphTests.cs
浏览文件 @
73330d9a
...
...
@@ -42,7 +42,7 @@ private void VerifyTopologicalSort(string projectReferences, params string[] exp
#
region
Dependency
Sets
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Workspace
)]
[
WorkItem
(
542438
)]
[
WorkItem
(
542438
,
"DevDiv"
)]
public
void
ProjectDependencyGraph_GetDependencySets
()
{
VerifyDependencySets
(
"A B:A C:A D E:D F:D"
,
"ABC DEF"
);
...
...
Src/Workspaces/CoreTest/SolutionParsingTests.cs
浏览文件 @
73330d9a
...
...
@@ -105,7 +105,7 @@ public void ParseVisualBasicConsoleApplicationSolution()
}
[
Fact
]
[
WorkItem
(
547294
)]
[
WorkItem
(
547294
,
"DevDiv"
)]
public
void
ParseSolutionWithMissingWhiteSpaces
()
{
var
vbConsoleApplicationSolution
=
@"
...
...
@@ -141,7 +141,7 @@ public void ParseSolutionWithMissingWhiteSpaces()
}
[
Fact
]
[
WorkItem
(
708726
)]
[
WorkItem
(
708726
,
"DevDiv"
)]
public
void
ParseSolutionFileWithVisualStudioVersion
()
{
var
vbConsoleApplicationSolution
=
@"
...
...
Src/Workspaces/CoreTest/SolutionTests.cs
浏览文件 @
73330d9a
...
...
@@ -85,7 +85,7 @@ public void TestUpdateAssemblyName()
}
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Workspace
)]
[
WorkItem
(
543964
)]
[
WorkItem
(
543964
,
"DevDiv"
)]
public
void
MultipleProjectsWithSameDisplayName
()
{
var
solution
=
CreateSolution
();
...
...
@@ -304,7 +304,7 @@ private Solution CreateSolutionWithProjectDependencyChain(int projectCount)
return
solution
;
}
[
WorkItem
(
636431
)]
[
WorkItem
(
636431
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Workspace
)]
public
void
TestProjectDependencyLoading
()
{
...
...
@@ -618,7 +618,7 @@ public void TestSyntaxRootNotKeptAlive()
[
MethodImpl
(
MethodImplOptions
.
NoInlining
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Workspace
)]
[
WorkItem
(
542736
)]
[
WorkItem
(
542736
,
"DevDiv"
)]
public
void
TestDocumentChangedOnDiskIsNotObserved
()
{
var
text1
=
"public class A {}"
;
...
...
@@ -1240,7 +1240,7 @@ public void TestDocumentFileAccessFailureMissingFile()
}
[
Fact
]
[
WorkItem
(
666263
)]
[
WorkItem
(
666263
,
"DevDiv"
)]
public
void
TestWorkspaceDiagnosticHasDebuggerText
()
{
var
solution
=
new
CustomWorkspace
().
CurrentSolution
;
...
...
Src/Workspaces/CoreTest/TemporaryStorageServiceTests.cs
浏览文件 @
73330d9a
...
...
@@ -36,7 +36,7 @@ public void TestTemporaryStorageText()
TestTemporaryStorage
(
service
,
text
);
}
[
WorkItem
(
531188
)]
[
WorkItem
(
531188
,
"DevDiv"
)]
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
Workspace
)]
public
void
TestTemporaryStorageStream
()
{
...
...
Src/Workspaces/VisualBasicTest/Formatting/FormattingTests.vb
浏览文件 @
73330d9a
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录