提交 ad6dad0a 编写于 作者: J Jared Parsons

Fixed up the unit test issues

上级 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 &quot;file.txt&quot; &quot;{00000000-0000-0000-0000-000000000000}&quot; &quot;2453&quot;
///#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 &amp;&amp; WINDOWS_PHONE || DEBUG || foo == t [rest of string was truncated]&quot;;.
/// </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 &lt;xmlns:ns=&quot;foo&quot;&gt;
///Imports &lt;xmlns=&quot;foo&quot;&gt;
///#Const line = 6
///#Const foo = True
///#If foo Then
///#Else
///#End If
///&apos; There is no equivalent to #undef in VB.NET:
///&apos;#undef foo
///&apos;#warning foo
///&apos;#error foo
///&apos; There is no equivalent to &apos;extern alias&apos; in VB:
///&apos;extern alias Foo;
///#If DEBUG OrElse T [rest of string was truncated]&quot;;.
/// </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 &lt;xmlns:ns=&quot;foo&quot;&gt;
///Imports &lt;xmlns=&quot;foo&quot;&gt;
///
///#Const line = 6
///#Const foo = True
///#If foo Then
///#Else
///#End If
///&apos; There is no equivalent to #undef in VB.NET:
///&apos;#undef foo
///&apos;#warning foo
///&apos;#error foo
///&apos; There is no equivalent to &apos;extern alias&apos; in VB:
///&apos;extern alias Foo;
///
///#If DEBUG OrEl [rest of string was truncated]&quot;;.
/// </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
///
///&apos;&apos;&apos; &lt;summary&gt;
///&apos;&apos;&apos; Sample Documentation
///&apos;&apos;&apos; &lt;/summary&gt;
///Module Program
/// Sub Main(args As String())
/// &apos; User Comments
/// Console.WriteLine(5)
/// End Sub
///End Module.
/// </summary>
public static string HelloWorldVisualBasicCode {
get {
return ResourceManager.GetString("HelloWorldVisualBasicCode", resourceCulture);
}
}
}
}
此差异已折叠。
......@@ -105,11 +105,6 @@
<Compile Include="MetadataSignatureHelper.cs" />
<Compile Include="SigningTestHelpers.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="Traits.cs" />
<Compile Include="Win32Res.cs" />
......@@ -153,12 +148,5 @@
<ItemGroup>
<None Include="project.json" />
</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" />
</Project>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
......@@ -196,14 +196,18 @@ namespace My
var s2 = $@"x {1 , -2 :d}";
}
int LocalFunction()
{
}
#if DEBUG
Console.WriteLine(export.iefSupplied.command);
#endif
const int? local = int.MaxValue;
const Guid? local0 = new Guid(r.ToString());
var привет = local;
var мир = local;
var ?????? = local;
var ??? = local;
var local3 = 0, local4 = 1;
local3 = local4 = 1;
var local5 = null as Action ?? null;
......@@ -217,6 +221,11 @@ namespace My
int minInt32Value = -2147483648;
int minInt64Value = -9223372036854775808L;
ref string stringRef;
stringRef = ref System.String.Empty;
ref string stringRef1 = ref System.String.Empty;
bool @bool;
byte @byte;
char @char = 'c', \u0066 = '\u0066', hexchar = '\x0130', hexchar2 = (char)0xBAD;
......@@ -309,6 +318,10 @@ namespace My
goto default;
break;
}
case 4 when true:
break;
case int i:
break;
default:
{
return;
......@@ -317,7 +330,8 @@ namespace My
while (i &lt; 10)
{
++i;
if (true) continue;
if (i is int q) continue;
void LocalFcn() => throw null;
break;
}
do
......@@ -548,14 +562,14 @@ namespace My
{
using System;
using System.Collections;
public class Список
public class ??????
{
public static IEnumerable Power(int number, int exponent)
{
Список Список = new Список();
Список.Main();
?????? ?????? = new ??????();
??????.Main();
int counter = (0 + 0);
int אתר = 0;
int ??? = 0;
while (++counter++ &lt; --exponent--)
{
result = result * number + +number+++++number;
......@@ -882,8 +896,8 @@ L:
Dim r As Integer
Dim Varioblelocal? As Integer = Integer.MaxValue
Dim Varioblelocal0? As Guid = New Guid(r.ToString())
Dim привет = local
Dim мир = local
Dim ?????? = local
Dim ??? = local
Dim local3 = 0, local4 = 1
Dim local5 = If(TryCast(Nothing, Action), Nothing)
Dim local6 = TypeOf local5 Is Action
......@@ -1195,11 +1209,11 @@ CaseLabel2:
Namespace Test
Public Class Список
Public Class ??????
Public Shared Function Power(ByVal number As Integer, ByVal exponent As Integer) As IEnumerable
Dim Список As New Список()
Список.Main()
Dim ?????? As New ??????()
??????.Main()
Dim counter As Integer =(0 + 0)
Dim result As Integer = 0
'Do While ++counter++ &lt; --exponent--
......@@ -1904,8 +1918,8 @@ L:
Dim Varioblelocal? As Integer = Integer.MaxValue
Dim Varioblelocal0? As Guid = New Guid(r.ToString())
Dim привет = local
Dim мир = local
Dim ?????? = local
Dim ??? = local
Dim local3 = 0, local4 = 1
Dim local5 = If(TryCast(Nothing, Action), Nothing)
Dim local6 = TypeOf local5 Is Action
......@@ -2235,10 +2249,10 @@ CaseLabel2:
Public Delegate Sub [Delegate](ByVal P As Object)
Namespace Test
Public Class Список
Public Class ??????
Public Shared Function Power(ByVal number As Integer, ByVal exponent As Integer) As IEnumerable
Dim Список As New Список()
Список.Main()
Dim ?????? As New ??????()
??????.Main()
Dim counter As Integer = (0 + 0)
Dim result As Integer = 0
......@@ -2951,4 +2965,4 @@ Module Program
End Sub
End Module</value>
</data>
</root>
\ No newline at end of file
</root>
......@@ -222,6 +222,9 @@
<CustomToolNamespace>Roslyn.Test.Utilities</CustomToolNamespace>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
</ItemGroup>
<Import Project="..\..\..\..\build\Targets\Imports.targets" />
<ProjectExtensions />
</Project>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册