Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
a73beac3
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,发现更多精彩内容 >>
提交
a73beac3
编写于
12月 26, 2016
作者:
J
Jared Parsons
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix up the unit tests
上级
4c8f0ba9
变更
8
展开全部
隐藏空白更改
内联
并排
Showing
8 changed file
with
903 addition
and
178 deletion
+903
-178
src/Compilers/CSharp/Test/Semantic/Semantics/ScriptSemanticsTests.cs
...rs/CSharp/Test/Semantic/Semantics/ScriptSemanticsTests.cs
+1
-0
src/Compilers/Test/Utilities/CSharp.Desktop/CSharpCompilerTestUtilities.Desktop.csproj
...CSharp.Desktop/CSharpCompilerTestUtilities.Desktop.csproj
+1
-0
src/Compilers/Test/Utilities/CSharp.Desktop/ScriptTestFixtures.cs
...ilers/Test/Utilities/CSharp.Desktop/ScriptTestFixtures.cs
+1
-1
src/Compilers/Test/Utilities/CSharp/CSharpCompilerTestUtilities.csproj
.../Test/Utilities/CSharp/CSharpCompilerTestUtilities.csproj
+1
-2
src/EditorFeatures/CSharpTest/ExtractMethod/SelectionValidatorTests.cs
...tures/CSharpTest/ExtractMethod/SelectionValidatorTests.cs
+1
-1
src/Test/Utilities/Portable/TestResource.Designer.cs
src/Test/Utilities/Portable/TestResource.Designer.cs
+189
-154
src/Test/Utilities/Portable/TestResource.resx
src/Test/Utilities/Portable/TestResource.resx
+708
-19
src/Test/Utilities/Portable/project.json
src/Test/Utilities/Portable/project.json
+1
-1
未找到文件。
src/Compilers/CSharp/Test/Semantic/Semantics/ScriptSemanticsTests.cs
浏览文件 @
a73beac3
...
...
@@ -711,6 +711,7 @@ public void HostObjectBinding_InStaticContext()
Diagnostic
(
ErrorCode
.
ERR_ObjectRequired
,
"Y"
).
WithArguments
(
typeName
+
".C.Y"
),
// (3,49): error CS0120: An object reference is required for the non-static field, method, or property 'Roslyn.Compilers.CSharp.UnitTests.Symbols.Source.InteractiveSessionTests.C.Z()'
Diagnostic
(
ErrorCode
.
ERR_ObjectRequired
,
"Z"
).
WithArguments
(
typeName
+
".C.Z()"
));
}
[
Fact
]
...
...
src/Compilers/Test/Utilities/CSharp.Desktop/CSharpCompilerTestUtilities.Desktop.csproj
浏览文件 @
a73beac3
...
...
@@ -65,6 +65,7 @@
</ItemGroup>
<ItemGroup>
<Compile
Include=
"MockCSharpCompiler.cs"
/>
<Compile
Include=
"ScriptTestFixtures.cs"
/>
</ItemGroup>
<ItemGroup>
<InternalsVisibleToTest
Include=
"Roslyn.Compilers.CSharp.CommandLine.UnitTests"
/>
...
...
src/Compilers/Test/Utilities/CSharp/ScriptTestFixtures.cs
→
src/Compilers/Test/Utilities/CSharp
.Desktop
/ScriptTestFixtures.cs
浏览文件 @
a73beac3
...
...
@@ -44,4 +44,4 @@ public class B2
public
int
x
=
1
,
w
=
4
;
}
}
}
}
\ No newline at end of file
src/Compilers/Test/Utilities/CSharp/CSharpCompilerTestUtilities.csproj
浏览文件 @
a73beac3
...
...
@@ -34,7 +34,6 @@
<Compile
Include=
"Extensions.cs"
/>
<Compile
Include=
"LocalVariableDeclaratorsCollector.cs"
/>
<Compile
Include=
"MetadataTestHelpers.cs"
/>
<Compile
Include=
"ScriptTestFixtures.cs"
/>
<Compile
Include=
"SemanticModelTestBase.cs"
/>
<Compile
Include=
"SymbolUtilities.cs"
/>
<Compile
Include=
"SyntaxTreeExtensions.cs"
/>
...
...
@@ -82,4 +81,4 @@
<UserProperties
project_1json__JSONSchema=
"http://json.schemastore.org/launchsettings"
/>
</VisualStudio>
</ProjectExtensions>
</Project>
</Project>
\ No newline at end of file
src/EditorFeatures/CSharpTest/ExtractMethod/SelectionValidatorTests.cs
浏览文件 @
a73beac3
...
...
@@ -1332,7 +1332,7 @@ static void Main()
[
Fact
,
Trait
(
Traits
.
Feature
,
Traits
.
Features
.
ExtractMethod
)]
public
async
Task
DontCrash
()
{
await
IterateAllAsync
(
TestResource
.
AllInOneCSharpCode
);
await
IterateAllAsync
(
TestResource
.
AllInOneCSharpCode
Version6
);
}
[
WorkItem
(
9931
,
"DevDiv_Projects/Roslyn"
)]
...
...
src/Test/Utilities/Portable/TestResource.Designer.cs
浏览文件 @
a73beac3
...
...
@@ -8,171 +8,206 @@
// </auto-generated>
//------------------------------------------------------------------------------
using
System.Reflection
;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"System.Resources.Tools.StronglyTypedResourceBuilder"
,
"4.0.0.0"
)]
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
()]
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
internal
class
TestResource
{
private
static
global
::
System
.
Resources
.
ResourceManager
resourceMan
;
namespace
Roslyn.Test.Utilities
{
using
System
;
using
System.Reflection
;
private
static
global
::
System
.
Globalization
.
CultureInfo
resourceCulture
;
[
global
::
System
.
Diagnostics
.
CodeAnalysis
.
SuppressMessageAttribute
(
"Microsoft.Performance"
,
"CA1811:AvoidUncalledPrivateCode"
)]
internal
TestResource
()
{
}
/// <summary>
///
Returns the cached ResourceManager instance used by this class
.
///
A strongly-typed resource class, for looking up localized strings, etc
.
/// </summary>
[
global
::
System
.
ComponentModel
.
EditorBrowsableAttribute
(
global
::
System
.
ComponentModel
.
EditorBrowsableState
.
Advanced
)]
internal
static
global
::
System
.
Resources
.
ResourceManager
ResourceManager
{
get
{
if
(
object
.
ReferenceEquals
(
resourceMan
,
null
))
{
global
::
System
.
Resources
.
ResourceManager
temp
=
new
global
::
System
.
Resources
.
ResourceManager
(
"TestResource"
,
typeof
(
TestResource
).
GetTypeInfo
().
Assembly
);
resourceMan
=
temp
;
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[
global
::
System
.
CodeDom
.
Compiler
.
GeneratedCodeAttribute
(
"System.Resources.Tools.StronglyTypedResourceBuilder"
,
"4.0.0.0"
)]
[
global
::
System
.
Diagnostics
.
DebuggerNonUserCodeAttribute
()]
[
global
::
System
.
Runtime
.
CompilerServices
.
CompilerGeneratedAttribute
()]
public
class
TestResource
{
private
static
global
::
System
.
Resources
.
ResourceManager
resourceMan
;
private
static
global
::
System
.
Globalization
.
CultureInfo
resourceCulture
;
[
global
::
System
.
Diagnostics
.
CodeAnalysis
.
SuppressMessageAttribute
(
"Microsoft.Performance"
,
"CA1811:AvoidUncalledPrivateCode"
)]
internal
TestResource
()
{
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[
global
::
System
.
ComponentModel
.
EditorBrowsableAttribute
(
global
::
System
.
ComponentModel
.
EditorBrowsableState
.
Advanced
)]
public
static
global
::
System
.
Resources
.
ResourceManager
ResourceManager
{
get
{
if
(
object
.
ReferenceEquals
(
resourceMan
,
null
))
{
global
::
System
.
Resources
.
ResourceManager
temp
=
new
global
::
System
.
Resources
.
ResourceManager
(
"TestResource"
,
typeof
(
TestResource
).
GetTypeInfo
().
Assembly
);
resourceMan
=
temp
;
}
return
resourceMan
;
}
return
resourceMan
;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[
global
::
System
.
ComponentModel
.
EditorBrowsableAttribute
(
global
::
System
.
ComponentModel
.
EditorBrowsableState
.
Advanced
)]
internal
static
global
::
System
.
Globalization
.
CultureInfo
Culture
{
get
{
return
resourceCulture
;
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[
global
::
System
.
ComponentModel
.
EditorBrowsableAttribute
(
global
::
System
.
ComponentModel
.
EditorBrowsableState
.
Advanced
)]
public
static
global
::
System
.
Globalization
.
CultureInfo
Culture
{
get
{
return
resourceCulture
;
}
set
{
resourceCulture
=
value
;
}
}
set
{
resourceCulture
=
value
;
/// <summary>
/// Looks up a localized string similar to #error Error message
///#warning Warning message
///#pragma warning disable 414, 3021
///#pragma warning restore 3021
///#pragma checksum "file.txt" "{00000000-0000-0000-0000-000000000000}" "2453"
///#define foo
///#if foo
///#else
///#endif
///#undef foo
///
///extern alias Foo;
///
///using System;
///using System.Collections.Generic;
///using System.Linq;
///using System.Linq.Expressions;
///using System.Text;
///using M = System.Math;
///
///#if DEBUG || TRACE
///using System.Diagnostics;
///#elif SILVERLIGHT && WINDOWS_PHONE || DEBUG || foo == t [rest of string was truncated]";.
/// </summary>
public
static
string
AllInOneCSharpCode
{
get
{
return
ResourceManager
.
GetString
(
"AllInOneCSharpCode"
,
resourceCulture
);
}
}
}
/// <summary>
/// Looks up a localized string similar to #error Error
message
///#warning Warning message
///#pragma warning disable 414,
3021
///#pragma warning restore 3021
///#pragma checksum "file.txt" "{00000000-0000-0000-0000-000000000000}" "2453"
///#define
foo
///#if foo
///#else
///#endif
///#undef foo
///
///extern alias Foo;
///
///using System
;
///using System.Collections.Generic
;
///using System.Linq
;
///using System.Linq.Expressions
;
///using System.Text
;
///using M = System.Math;
///
///#if DEBUG || TRACE
///using System.Diagnostics;
///#elif SILVERLIGHT && WINDOWS_PHONE || DEBUG || foo == t [rest of string was truncated]";.
/// </summary>
internal
static
string
AllInOneCSharpCode
{
get
{
return
ResourceManager
.
GetString
(
"AllInOneCSharpCode"
,
resourceCulture
);
/// <summary>
/// Looks up a localized string similar to #error Error message
///#warning Warning
message
///#pragma warning disable 414, 3021
///#pragma warning restore
3021
///#pragma checksum "file.txt" "{00000000-0000-0000-0000-000000000000}" "2453"
///#define foo
///#if
foo
///#else
///#endif
///#undef foo
///
///extern alias Foo;
///
///using System;
///using System.Collections.Generic
;
///using System.Linq
;
///using System.Linq.Expressions
;
///using System.Text
;
///using M = System.Math
;
///
///#if DEBUG || TRACE
///using System.Diagnostics;
///#elif SILVERLIGHT && WINDOWS_PHONE || DEBUG || foo == t [rest of string was truncated]";.
/// </summary>
public
static
string
AllInOneCSharpCodeVersion6
{
get
{
return
ResourceManager
.
GetString
(
"AllInOneCSharpCodeVersion6"
,
resourceCulture
);
}
}
}
/// <summary>
/// Looks up a localized string similar to Option Infer On
///Option Explicit Off
///
///Imports System
///Imports System.Collections.Generic
///Imports System.Linq
///Imports System.Linq.Expressions
///Imports System.Text
///Imports M = System.Math
///Imports System.Collections
///Imports <xmlns:
ns="foo">
///Imports <xmlns="foo">
///#Const line = 6
///#Const foo = True
///#If foo Then
///#Else
///#End If
///' There is no equivalent to #undef in VB.NET:
///'#undef
foo
///'#warning
foo
///'#error foo
///' There is no equivalent to 'extern alias' in VB:
///'extern alias Foo;
///#If DEBUG OrElse T [rest of string was truncated]";.
/// </summary>
internal
static
string
AllInOneVisualBasicBaseline
{
get
{
return
ResourceManager
.
GetString
(
"AllInOneVisualBasicBaseline"
,
resourceCulture
);
/// <summary>
/// Looks up a localized string similar to Option Infer On
///Option Explicit Off
///
///Imports System
///Imports System.Collections.Generic
///Imports System.Linq
///Imports System.Linq.Expressions
///Imports System.Text
///Imports M = System.Math
///Imports System.Collections
///Imports <xmlns:ns="foo">
///Imports <xml
ns="foo">
///#Const line = 6
///#Const foo = True
///#If foo Then
///#Else
///#End If
///' There is no equivalent to #undef in VB.NET:
///'#undef foo
///'#warning
foo
///'#error
foo
///' There is no equivalent to 'extern alias' in VB:
///'extern alias Foo;
///#If DEBUG OrElse T [rest of string was truncated]";.
/// </summary>
public
static
string
AllInOneVisualBasicBaseline
{
get
{
return
ResourceManager
.
GetString
(
"AllInOneVisualBasicBaseline"
,
resourceCulture
);
}
}
}
/// <summary>
/// Looks up a localized string similar to Option Infer On
///Option Explicit Off
///
///Imports System
///Imports System.Collections.Generic
///Imports System.Linq
///Imports System.Linq.Expressions
///Imports System.Text
///Imports M = System.Math
///Imports System.Collections
///Imports <xmlns:
ns="foo">
///Imports <xmlns="foo">
///
///#Const line = 6
///#Const foo = True
///#If foo Then
///#Else
///#End If
///' There is no equivalent to #undef in VB.NET:
///'#undef
foo
///'#warning
foo
///'#error foo
///' There is no equivalent to 'extern alias' in VB:
///'extern alias Foo;
///
///#If DEBUG OrEl [rest of string was truncated]";.
/// </summary>
internal
static
string
AllInOneVisualBasicCode
{
get
{
return
ResourceManager
.
GetString
(
"AllInOneVisualBasicCode"
,
resourceCulture
);
/// <summary>
/// Looks up a localized string similar to Option Infer On
///Option Explicit Off
///
///Imports System
///Imports System.Collections.Generic
///Imports System.Linq
///Imports System.Linq.Expressions
///Imports System.Text
///Imports M = System.Math
///Imports System.Collections
///Imports <xmlns:ns="foo">
///Imports <xml
ns="foo">
///
///#Const line = 6
///#Const foo = True
///#If foo Then
///#Else
///#End If
///' There is no equivalent to #undef in VB.NET:
///'#undef foo
///'#warning
foo
///'#error
foo
///' There is no equivalent to 'extern alias' in VB:
///'extern alias Foo;
///
///#If DEBUG OrEl [rest of string was truncated]";.
/// </summary>
public
static
string
AllInOneVisualBasicCode
{
get
{
return
ResourceManager
.
GetString
(
"AllInOneVisualBasicCode"
,
resourceCulture
);
}
}
}
/// <summary>
/// Looks up a localized string similar to Imports System
///Imports System.Collections.Generic
///Imports System.Linq
///
///''' <summary>
///''' Sample Documentation
///''' </summary>
///Module Program
/// Sub Main(args As String())
/// ' User Comments
/// Console.WriteLine(5)
/// End Sub
///End Module.
/// </summary>
internal
static
string
HelloWorldVisualBasicCode
{
get
{
return
ResourceManager
.
GetString
(
"HelloWorldVisualBasicCode"
,
resourceCulture
);
/// <summary>
/// Looks up a localized string similar to Imports System
///Imports System.Collections.Generic
///Imports System.Linq
///
///''' <summary>
///''' Sample Documentation
///''' </summary>
///Module Program
/// Sub Main(args As String())
/// ' User Comments
/// Console.WriteLine(5)
/// End Sub
///End Module.
/// </summary>
public
static
string
HelloWorldVisualBasicCode
{
get
{
return
ResourceManager
.
GetString
(
"HelloWorldVisualBasicCode"
,
resourceCulture
);
}
}
}
}
src/Test/Utilities/Portable/TestResource.resx
浏览文件 @
a73beac3
此差异已折叠。
点击以展开。
src/Test/Utilities/Portable/project.json
浏览文件 @
a73beac3
...
...
@@ -9,7 +9,7 @@
"System.Diagnostics.Debug"
:
"4.3.0"
,
"System.Diagnostics.Tools"
:
"4.3.0"
,
"System.Diagnostics.TraceSource"
:
"4.3.0"
,
"System.Diagnostics.Process"
:
"4.
1
.0"
,
"System.Diagnostics.Process"
:
"4.
3
.0"
,
"System.IO.FileSystem"
:
"4.3.0"
,
"System.Reflection.TypeExtensions"
:
"4.3.0"
,
"System.Text.RegularExpressions"
:
"4.3.0"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录