Skip to content

Commit 4e06e4b

Browse files
Remove use sites from tests for now
1 parent f762507 commit 4e06e4b

File tree

1 file changed

+6
-22
lines changed

1 file changed

+6
-22
lines changed

ICSharpCode.Decompiler.Tests/TestCases/Pretty/ExtensionEverything.cs

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Linq;
4-
using System.Text.RegularExpressions;
54

65
namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty
76
{
@@ -80,21 +79,6 @@ public static void StaticExtension()
8079
{
8180
public double Magnitude => Math.Sqrt(point.X * point.X + point.Y * point.Y);
8281
}
83-
84-
extension(ref ExtensionEverythingTestUseSites.Point point)
85-
{
86-
public double MagnitudeRef => Math.Sqrt(point.X * point.X + point.Y * point.Y);
87-
}
88-
89-
extension<T>(IEnumerable<T> @this)
90-
{
91-
public bool IsEmpty => !@this.Any();
92-
}
93-
94-
extension(string @this)
95-
{
96-
public int WordCount => Regex.Matches(@this, @"\w+").Count;
97-
}
9882
}
9983

10084
internal class ExtensionEverythingTestUseSites
@@ -106,19 +90,19 @@ public static void TestExtensionProperty()
10690
Point point = new Point(3, 4);
10791
Console.WriteLine(point.X);
10892
Console.WriteLine(point.Y);
109-
Console.WriteLine(point.Magnitude);
93+
//Console.WriteLine(point.Magnitude);
11094
}
11195

11296
public static void TestExtensionMethods()
11397
{
11498
List<string> collection = new List<string>();
115-
Console.WriteLine(collection.IsEmpty);
99+
//Console.WriteLine(collection.IsEmpty);
116100
collection.AddIfNotNull("Hello");
117101
collection.AddIfNotNull(null);
118-
Console.WriteLine(collection.IsEmpty);
119-
Console.WriteLine(collection.Test);
120-
collection.Test = 100;
121-
List<string>.StaticExtension();
102+
//Console.WriteLine(collection.IsEmpty);
103+
//Console.WriteLine(collection.Test);
104+
//collection.Test = 100;
105+
//List<string>.StaticExtension();
122106
}
123107
}
124108
}

0 commit comments

Comments
 (0)