Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
ad6dad0a
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,发现更多精彩内容 >>
提交
ad6dad0a
编写于
12月 26, 2016
作者:
J
Jared Parsons
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixed up the unit test issues
上级
3dbf02b1
变更
5
展开全部
显示空白变更内容
内联
并排
Showing
5 changed file
with
36 addition
and
3180 deletion
+36
-3180
src/Test/Utilities/Desktop/TestResource.Designer.cs
src/Test/Utilities/Desktop/TestResource.Designer.cs
+0
-181
src/Test/Utilities/Desktop/TestResource.resx
src/Test/Utilities/Desktop/TestResource.resx
+0
-2968
src/Test/Utilities/Desktop/TestUtilities.Desktop.csproj
src/Test/Utilities/Desktop/TestUtilities.Desktop.csproj
+0
-12
src/Test/Utilities/Portable/TestResource.resx
src/Test/Utilities/Portable/TestResource.resx
+33
-19
src/Test/Utilities/Portable/TestUtilities.csproj
src/Test/Utilities/Portable/TestUtilities.csproj
+3
-0
未找到文件。
src/Test/Utilities/Desktop/TestResource.Designer.cs
已删除
100644 → 0
浏览文件 @
3dbf02b1
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace
Roslyn.Test.Utilities
{
using
System
;
/// <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
()]
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
(
"Roslyn.Test.Utilities.TestResource"
,
typeof
(
TestResource
).
Assembly
);
resourceMan
=
temp
;
}
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
)]
public
static
global
::
System
.
Globalization
.
CultureInfo
Culture
{
get
{
return
resourceCulture
;
}
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 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>
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>
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>
public
static
string
HelloWorldVisualBasicCode
{
get
{
return
ResourceManager
.
GetString
(
"HelloWorldVisualBasicCode"
,
resourceCulture
);
}
}
}
}
src/Test/Utilities/Desktop/TestResource.resx
已删除
100644 → 0
浏览文件 @
3dbf02b1
此差异已折叠。
点击以展开。
src/Test/Utilities/Desktop/TestUtilities.Desktop.csproj
浏览文件 @
ad6dad0a
...
@@ -105,11 +105,6 @@
...
@@ -105,11 +105,6 @@
<Compile
Include=
"MetadataSignatureHelper.cs"
/>
<Compile
Include=
"MetadataSignatureHelper.cs"
/>
<Compile
Include=
"SigningTestHelpers.cs"
/>
<Compile
Include=
"SigningTestHelpers.cs"
/>
<Compile
Include=
"TestHelpers.cs"
/>
<Compile
Include=
"TestHelpers.cs"
/>
<Compile
Include=
"TestResource.Designer.cs"
>
<DependentUpon>
TestResource.resx
</DependentUpon>
<AutoGen>
True
</AutoGen>
<DesignTime>
True
</DesignTime>
</Compile>
<Compile
Include=
"ThrowingTraceListener.cs"
/>
<Compile
Include=
"ThrowingTraceListener.cs"
/>
<Compile
Include=
"Traits.cs"
/>
<Compile
Include=
"Traits.cs"
/>
<Compile
Include=
"Win32Res.cs"
/>
<Compile
Include=
"Win32Res.cs"
/>
...
@@ -153,12 +148,5 @@
...
@@ -153,12 +148,5 @@
<ItemGroup>
<ItemGroup>
<None
Include=
"project.json"
/>
<None
Include=
"project.json"
/>
</ItemGroup>
</ItemGroup>
<ItemGroup>
<EmbeddedResource
Include=
"TestResource.resx"
>
<Generator>
PublicResXFileCodeGenerator
</Generator>
<LastGenOutput>
TestResource.Designer.cs
</LastGenOutput>
<CustomToolNamespace>
Roslyn.Test.Utilities
</CustomToolNamespace>
</EmbeddedResource>
</ItemGroup>
<Import
Project=
"..\..\..\..\build\Targets\Imports.targets"
/>
<Import
Project=
"..\..\..\..\build\Targets\Imports.targets"
/>
</Project>
</Project>
\ No newline at end of file
src/Test/Utilities/Portable/TestResource.resx
浏览文件 @
ad6dad0a
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<root>
<!--
<!--
Microsoft ResX Schema
Microsoft ResX Schema
...
@@ -196,14 +196,18 @@ namespace My
...
@@ -196,14 +196,18 @@ namespace My
var s2 = $@"x {1 , -2 :d}";
var s2 = $@"x {1 , -2 :d}";
}
}
int LocalFunction()
{
}
#if DEBUG
#if DEBUG
Console.WriteLine(export.iefSupplied.command);
Console.WriteLine(export.iefSupplied.command);
#endif
#endif
const int? local = int.MaxValue;
const int? local = int.MaxValue;
const Guid? local0 = new Guid(r.ToString());
const Guid? local0 = new Guid(r.ToString());
var
привет
= local;
var
??????
= local;
var
мир
= local;
var
???
= local;
var local3 = 0, local4 = 1;
var local3 = 0, local4 = 1;
local3 = local4 = 1;
local3 = local4 = 1;
var local5 = null as Action ?? null;
var local5 = null as Action ?? null;
...
@@ -217,6 +221,11 @@ namespace My
...
@@ -217,6 +221,11 @@ namespace My
int minInt32Value = -2147483648;
int minInt32Value = -2147483648;
int minInt64Value = -9223372036854775808L;
int minInt64Value = -9223372036854775808L;
ref string stringRef;
stringRef = ref System.String.Empty;
ref string stringRef1 = ref System.String.Empty;
bool @bool;
bool @bool;
byte @byte;
byte @byte;
char @char = 'c', \u0066 = '\u0066', hexchar = '\x0130', hexchar2 = (char)0xBAD;
char @char = 'c', \u0066 = '\u0066', hexchar = '\x0130', hexchar2 = (char)0xBAD;
...
@@ -309,6 +318,10 @@ namespace My
...
@@ -309,6 +318,10 @@ namespace My
goto default;
goto default;
break;
break;
}
}
case 4 when true:
break;
case int i:
break;
default:
default:
{
{
return;
return;
...
@@ -317,7 +330,8 @@ namespace My
...
@@ -317,7 +330,8 @@ namespace My
while (i
<
10)
while (i
<
10)
{
{
++i;
++i;
if (true) continue;
if (i is int q) continue;
void LocalFcn() => throw null;
break;
break;
}
}
do
do
...
@@ -548,14 +562,14 @@ namespace My
...
@@ -548,14 +562,14 @@ namespace My
{
{
using System;
using System;
using System.Collections;
using System.Collections;
public class
Список
public class
??????
{
{
public static IEnumerable Power(int number, int exponent)
public static IEnumerable Power(int number, int exponent)
{
{
Список Список = new Список
();
?????? ?????? = new ??????
();
Список
.Main();
??????
.Main();
int counter = (0 + 0);
int counter = (0 + 0);
int
אתר
= 0;
int
???
= 0;
while (++counter++
<
--exponent--)
while (++counter++
<
--exponent--)
{
{
result = result * number + +number+++++number;
result = result * number + +number+++++number;
...
@@ -882,8 +896,8 @@ L:
...
@@ -882,8 +896,8 @@ L:
Dim r As Integer
Dim r As Integer
Dim Varioblelocal? As Integer = Integer.MaxValue
Dim Varioblelocal? As Integer = Integer.MaxValue
Dim Varioblelocal0? As Guid = New Guid(r.ToString())
Dim Varioblelocal0? As Guid = New Guid(r.ToString())
Dim
привет
= local
Dim
??????
= local
Dim
мир
= local
Dim
???
= local
Dim local3 = 0, local4 = 1
Dim local3 = 0, local4 = 1
Dim local5 = If(TryCast(Nothing, Action), Nothing)
Dim local5 = If(TryCast(Nothing, Action), Nothing)
Dim local6 = TypeOf local5 Is Action
Dim local6 = TypeOf local5 Is Action
...
@@ -1195,11 +1209,11 @@ CaseLabel2:
...
@@ -1195,11 +1209,11 @@ CaseLabel2:
Namespace Test
Namespace Test
Public Class
Список
Public Class
??????
Public Shared Function Power(ByVal number As Integer, ByVal exponent As Integer) As IEnumerable
Public Shared Function Power(ByVal number As Integer, ByVal exponent As Integer) As IEnumerable
Dim
Список As New Список
()
Dim
?????? As New ??????
()
Список
.Main()
??????
.Main()
Dim counter As Integer =(0 + 0)
Dim counter As Integer =(0 + 0)
Dim result As Integer = 0
Dim result As Integer = 0
'Do While ++counter++
<
--exponent--
'Do While ++counter++
<
--exponent--
...
@@ -1904,8 +1918,8 @@ L:
...
@@ -1904,8 +1918,8 @@ L:
Dim Varioblelocal? As Integer = Integer.MaxValue
Dim Varioblelocal? As Integer = Integer.MaxValue
Dim Varioblelocal0? As Guid = New Guid(r.ToString())
Dim Varioblelocal0? As Guid = New Guid(r.ToString())
Dim
привет
= local
Dim
??????
= local
Dim
мир
= local
Dim
???
= local
Dim local3 = 0, local4 = 1
Dim local3 = 0, local4 = 1
Dim local5 = If(TryCast(Nothing, Action), Nothing)
Dim local5 = If(TryCast(Nothing, Action), Nothing)
Dim local6 = TypeOf local5 Is Action
Dim local6 = TypeOf local5 Is Action
...
@@ -2235,10 +2249,10 @@ CaseLabel2:
...
@@ -2235,10 +2249,10 @@ CaseLabel2:
Public Delegate Sub [Delegate](ByVal P As Object)
Public Delegate Sub [Delegate](ByVal P As Object)
Namespace Test
Namespace Test
Public Class
Список
Public Class
??????
Public Shared Function Power(ByVal number As Integer, ByVal exponent As Integer) As IEnumerable
Public Shared Function Power(ByVal number As Integer, ByVal exponent As Integer) As IEnumerable
Dim
Список As New Список
()
Dim
?????? As New ??????
()
Список
.Main()
??????
.Main()
Dim counter As Integer = (0 + 0)
Dim counter As Integer = (0 + 0)
Dim result As Integer = 0
Dim result As Integer = 0
...
...
src/Test/Utilities/Portable/TestUtilities.csproj
浏览文件 @
ad6dad0a
...
@@ -222,6 +222,9 @@
...
@@ -222,6 +222,9 @@
<CustomToolNamespace>
Roslyn.Test.Utilities
</CustomToolNamespace>
<CustomToolNamespace>
Roslyn.Test.Utilities
</CustomToolNamespace>
</EmbeddedResource>
</EmbeddedResource>
</ItemGroup>
</ItemGroup>
<ItemGroup>
<Service
Include=
"{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}"
/>
</ItemGroup>
<Import
Project=
"..\..\..\..\build\Targets\Imports.targets"
/>
<Import
Project=
"..\..\..\..\build\Targets\Imports.targets"
/>
<ProjectExtensions
/>
<ProjectExtensions
/>
</Project>
</Project>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录