Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
We are now equivalent to the master branch on ILSpy 🎉
  • Loading branch information
ElektroKill committed Aug 11, 2021
1 parent 11f7a8e commit d450865
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using ClassLibrary1;
using System;
using System.Reflection;
using ClassLibrary1;

[assembly: AssemblyCompany("ConsoleApp8")]
[assembly: AssemblyConfiguration("Release")]
Expand Down
14 changes: 4 additions & 10 deletions ICSharpCode.Decompiler.Tests/TestCases/Pretty/ExceptionHandling.cs
Original file line number Diff line number Diff line change
Expand Up @@ -198,22 +198,16 @@ public void ThrowInFinally()

internal void EarlyReturnInTryBlock(bool a, bool b)
{
try
{
if (a)
{
try {
if (a) {
Console.WriteLine("a");
}
else if (b)
{
} else if (b) {
// #2379: The only goto-free way of representing this code is to use a return statement
return;
}

Console.WriteLine("a || !b");
}
finally
{
} finally {
Console.WriteLine("finally");
}
}
Expand Down
10 changes: 3 additions & 7 deletions ICSharpCode.Decompiler.Tests/TestCases/Pretty/Loops.cs
Original file line number Diff line number Diff line change
Expand Up @@ -909,16 +909,12 @@ public void MergeAroundContinue()

public void ForEachInSwitch(int i, IEnumerable<string> args)
{
switch (i)
{

switch (i) {
case 1:
Console.WriteLine("one");
break;
case 2:
{
foreach (string arg in args)
{
case 2: {
foreach (string arg in args) {
Console.WriteLine(arg);
}
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,15 @@ public int FullProperty {
}
}

public int AutoProperty { get; set; }
public int AutoProperty {
get;
set;
}

#if ROSLYN
public int ReadOnlyAutoProperty { get; }
public int ReadOnlyAutoProperty {
get;
}
public VBPropertiesTest()
{
ReadOnlyAutoProperty = 32;
Expand Down

0 comments on commit d450865

Please sign in to comment.