Skip to content

Commit 6edc75e

Browse files
committed
Fix workaround
1 parent b1e1b68 commit 6edc75e

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

src/NetAnalyzers/UnitTests/Microsoft.NetCore.Analyzers/Runtime/SpecifyIFormatProviderTests.cs

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -952,25 +952,8 @@ public async Task CA1305_GuidParse_NoDiagnosticsAsync()
952952
{
953953
await new VerifyCS.Test
954954
{
955-
ReferenceAssemblies = new ReferenceAssemblies(""), // workaround for lack of .NET 7 Preview 4 reference assemblies
955+
ReferenceAssemblies = ReferenceAssemblies.Net.Net70,
956956
TestCode = @"
957-
namespace System
958-
{
959-
public class Object { }
960-
public abstract class ValueType { }
961-
public struct Void { }
962-
public class String { }
963-
public interface IFormatProvider { }
964-
public struct Guid
965-
{
966-
public static Guid Parse(string s) => default;
967-
public static Guid Parse(string s, IFormatProvider provider) => default;
968-
}
969-
}
970-
namespace System.Globalization
971-
{
972-
public class CultureInfo : IFormatProvider { }
973-
}
974957
namespace Test
975958
{
976959
using System;

0 commit comments

Comments
 (0)