Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,35 @@
<InternalsVisibleTo Include="Microsoft.CodeAnalysis.Testing.Verifiers.XUnit" />

<InternalsVisibleTo Include="Microsoft.CodeAnalysis.Analyzer.Testing.UnitTests" />

<!-- Obsolete packages need access to ObsoleteMessages -->
<InternalsVisibleTo Include="Microsoft.CodeAnalysis.CSharp.Analyzer.Testing.MSTest" />
<InternalsVisibleTo Include="Microsoft.CodeAnalysis.CSharp.Analyzer.Testing.NUnit" />
<InternalsVisibleTo Include="Microsoft.CodeAnalysis.CSharp.Analyzer.Testing.XUnit" />
<InternalsVisibleTo Include="Microsoft.CodeAnalysis.CSharp.CodeFix.Testing.MSTest" />
<InternalsVisibleTo Include="Microsoft.CodeAnalysis.CSharp.CodeFix.Testing.NUnit" />
<InternalsVisibleTo Include="Microsoft.CodeAnalysis.CSharp.CodeFix.Testing.XUnit" />
<InternalsVisibleTo Include="Microsoft.CodeAnalysis.CSharp.CodeRefactoring.Testing.MSTest" />
<InternalsVisibleTo Include="Microsoft.CodeAnalysis.CSharp.CodeRefactoring.Testing.NUnit" />
<InternalsVisibleTo Include="Microsoft.CodeAnalysis.CSharp.CodeRefactoring.Testing.XUnit" />
<InternalsVisibleTo Include="Microsoft.CodeAnalysis.CSharp.SourceGenerators.Testing.MSTest" />
<InternalsVisibleTo Include="Microsoft.CodeAnalysis.CSharp.SourceGenerators.Testing.NUnit" />
<InternalsVisibleTo Include="Microsoft.CodeAnalysis.CSharp.SourceGenerators.Testing.XUnit" />
<InternalsVisibleTo Include="Microsoft.CodeAnalysis.Testing.Verifiers.MSTest.UnitTests" />
<InternalsVisibleTo Include="Microsoft.CodeAnalysis.Testing.Verifiers.NUnit.UnitTests" />
<InternalsVisibleTo Include="Microsoft.CodeAnalysis.Testing.Verifiers.XUnit.UnitTests" />
<InternalsVisibleTo Include="Microsoft.CodeAnalysis.VisualBasic.Analyzer.Testing.MSTest" />
<InternalsVisibleTo Include="Microsoft.CodeAnalysis.VisualBasic.Analyzer.Testing.NUnit" />
<InternalsVisibleTo Include="Microsoft.CodeAnalysis.VisualBasic.Analyzer.Testing.XUnit" />
<InternalsVisibleTo Include="Microsoft.CodeAnalysis.VisualBasic.CodeFix.Testing.MSTest" />
<InternalsVisibleTo Include="Microsoft.CodeAnalysis.VisualBasic.CodeFix.Testing.NUnit" />
<InternalsVisibleTo Include="Microsoft.CodeAnalysis.VisualBasic.CodeFix.Testing.XUnit" />
<InternalsVisibleTo Include="Microsoft.CodeAnalysis.VisualBasic.CodeRefactoring.Testing.MSTest" />
<InternalsVisibleTo Include="Microsoft.CodeAnalysis.VisualBasic.CodeRefactoring.Testing.NUnit" />
<InternalsVisibleTo Include="Microsoft.CodeAnalysis.VisualBasic.CodeRefactoring.Testing.XUnit" />
<InternalsVisibleTo Include="Microsoft.CodeAnalysis.VisualBasic.SourceGenerators.Testing.MSTest" />
<InternalsVisibleTo Include="Microsoft.CodeAnalysis.VisualBasic.SourceGenerators.Testing.NUnit" />
<InternalsVisibleTo Include="Microsoft.CodeAnalysis.VisualBasic.SourceGenerators.Testing.XUnit" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

namespace Microsoft.CodeAnalysis.Testing
{
internal static class ObsoleteMessages
{
public const string FrameworkPackages = "https://github.com/dotnet/roslyn-sdk/blob/main/src/Microsoft.CodeAnalysis.Testing/README.md#obsolete-packages";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.CodeAnalysis.Testing;

namespace Microsoft.CodeAnalysis.CSharp.Testing.MSTest
{
[Obsolete(ObsoleteMessages.FrameworkPackages)]
public static class AnalyzerVerifier
{
public static AnalyzerVerifier<TAnalyzer> Create<TAnalyzer>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.CodeAnalysis.Testing;
using Microsoft.CodeAnalysis.Testing.Verifiers;

namespace Microsoft.CodeAnalysis.CSharp.Testing.MSTest
{
[Obsolete(ObsoleteMessages.FrameworkPackages)]
public class AnalyzerVerifier<TAnalyzer> : CSharpAnalyzerVerifier<TAnalyzer, MSTestVerifier>
where TAnalyzer : DiagnosticAnalyzer, new()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.CodeAnalysis.Testing;

namespace Microsoft.CodeAnalysis.CSharp.Testing.NUnit
{
[Obsolete(ObsoleteMessages.FrameworkPackages)]
public static class AnalyzerVerifier
{
public static AnalyzerVerifier<TAnalyzer> Create<TAnalyzer>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.CodeAnalysis.Testing;
using Microsoft.CodeAnalysis.Testing.Verifiers;

namespace Microsoft.CodeAnalysis.CSharp.Testing.NUnit
{
[Obsolete(ObsoleteMessages.FrameworkPackages)]
public class AnalyzerVerifier<TAnalyzer> : CSharpAnalyzerVerifier<TAnalyzer, NUnitVerifier>
where TAnalyzer : DiagnosticAnalyzer, new()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.CodeAnalysis.Testing;

namespace Microsoft.CodeAnalysis.CSharp.Testing.XUnit
{
[Obsolete(ObsoleteMessages.FrameworkPackages)]
public static class AnalyzerVerifier
{
public static AnalyzerVerifier<TAnalyzer> Create<TAnalyzer>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.CodeAnalysis.Testing;
using Microsoft.CodeAnalysis.Testing.Verifiers;

namespace Microsoft.CodeAnalysis.CSharp.Testing.XUnit
{
[Obsolete(ObsoleteMessages.FrameworkPackages)]
public class AnalyzerVerifier<TAnalyzer> : CSharpAnalyzerVerifier<TAnalyzer, XUnitVerifier>
where TAnalyzer : DiagnosticAnalyzer, new()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
using Microsoft.CodeAnalysis.CodeFixes;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.CodeAnalysis.Testing;

namespace Microsoft.CodeAnalysis.CSharp.Testing.MSTest
{
[Obsolete(ObsoleteMessages.FrameworkPackages)]
public static class CodeFixVerifier
{
public static CodeFixVerifier<TAnalyzer, TCodeFix> Create<TAnalyzer, TCodeFix>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
using Microsoft.CodeAnalysis.CodeFixes;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.CodeAnalysis.Testing;
using Microsoft.CodeAnalysis.Testing.Verifiers;

namespace Microsoft.CodeAnalysis.CSharp.Testing.MSTest
{
[Obsolete(ObsoleteMessages.FrameworkPackages)]
public class CodeFixVerifier<TAnalyzer, TCodeFix> : CSharpCodeFixVerifier<TAnalyzer, TCodeFix, MSTestVerifier>
where TAnalyzer : DiagnosticAnalyzer, new()
where TCodeFix : CodeFixProvider, new()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
using Microsoft.CodeAnalysis.CodeFixes;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.CodeAnalysis.Testing;

namespace Microsoft.CodeAnalysis.CSharp.Testing.NUnit
{
[Obsolete(ObsoleteMessages.FrameworkPackages)]
public static class CodeFixVerifier
{
public static CodeFixVerifier<TAnalyzer, TCodeFix> Create<TAnalyzer, TCodeFix>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
using Microsoft.CodeAnalysis.CodeFixes;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.CodeAnalysis.Testing;
using Microsoft.CodeAnalysis.Testing.Verifiers;

namespace Microsoft.CodeAnalysis.CSharp.Testing.NUnit
{
[Obsolete(ObsoleteMessages.FrameworkPackages)]
public class CodeFixVerifier<TAnalyzer, TCodeFix> : CSharpCodeFixVerifier<TAnalyzer, TCodeFix, NUnitVerifier>
where TAnalyzer : DiagnosticAnalyzer, new()
where TCodeFix : CodeFixProvider, new()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
using Microsoft.CodeAnalysis.CodeFixes;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.CodeAnalysis.Testing;

namespace Microsoft.CodeAnalysis.CSharp.Testing.XUnit
{
[Obsolete(ObsoleteMessages.FrameworkPackages)]
public static class CodeFixVerifier
{
public static CodeFixVerifier<TAnalyzer, TCodeFix> Create<TAnalyzer, TCodeFix>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
using Microsoft.CodeAnalysis.CodeFixes;
using Microsoft.CodeAnalysis.Diagnostics;
using Microsoft.CodeAnalysis.Testing;
using Microsoft.CodeAnalysis.Testing.Verifiers;

namespace Microsoft.CodeAnalysis.CSharp.Testing.XUnit
{
[Obsolete(ObsoleteMessages.FrameworkPackages)]
public class CodeFixVerifier<TAnalyzer, TCodeFix> : CSharpCodeFixVerifier<TAnalyzer, TCodeFix, XUnitVerifier>
where TAnalyzer : DiagnosticAnalyzer, new()
where TCodeFix : CodeFixProvider, new()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
using Microsoft.CodeAnalysis.CodeRefactorings;
using Microsoft.CodeAnalysis.Testing;

namespace Microsoft.CodeAnalysis.CSharp.Testing.MSTest
{
[Obsolete(ObsoleteMessages.FrameworkPackages)]
public static class CodeRefactoringVerifier
{
public static CodeRefactoringVerifier<TCodeRefactoring> Create<TCodeRefactoring>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
using Microsoft.CodeAnalysis.CodeRefactorings;
using Microsoft.CodeAnalysis.Testing;
using Microsoft.CodeAnalysis.Testing.Verifiers;

namespace Microsoft.CodeAnalysis.CSharp.Testing.MSTest
{
[Obsolete(ObsoleteMessages.FrameworkPackages)]
public class CodeRefactoringVerifier<TCodeRefactoring> : CSharpCodeRefactoringVerifier<TCodeRefactoring, MSTestVerifier>
where TCodeRefactoring : CodeRefactoringProvider, new()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
using Microsoft.CodeAnalysis.CodeRefactorings;
using Microsoft.CodeAnalysis.Testing;

namespace Microsoft.CodeAnalysis.CSharp.Testing.NUnit
{
[Obsolete(ObsoleteMessages.FrameworkPackages)]
public static class CodeRefactoringVerifier
{
public static CodeRefactoringVerifier<TCodeRefactoring> Create<TCodeRefactoring>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
using Microsoft.CodeAnalysis.CodeRefactorings;
using Microsoft.CodeAnalysis.Testing;
using Microsoft.CodeAnalysis.Testing.Verifiers;

namespace Microsoft.CodeAnalysis.CSharp.Testing.NUnit
{
[Obsolete(ObsoleteMessages.FrameworkPackages)]
public class CodeRefactoringVerifier<TCodeRefactoring> : CSharpCodeRefactoringVerifier<TCodeRefactoring, NUnitVerifier>
where TCodeRefactoring : CodeRefactoringProvider, new()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
using Microsoft.CodeAnalysis.CodeRefactorings;
using Microsoft.CodeAnalysis.Testing;

namespace Microsoft.CodeAnalysis.CSharp.Testing.XUnit
{
[Obsolete(ObsoleteMessages.FrameworkPackages)]
public static class CodeRefactoringVerifier
{
public static CodeRefactoringVerifier<TCodeRefactoring> Create<TCodeRefactoring>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
using Microsoft.CodeAnalysis.CodeRefactorings;
using Microsoft.CodeAnalysis.Testing;
using Microsoft.CodeAnalysis.Testing.Verifiers;

namespace Microsoft.CodeAnalysis.CSharp.Testing.XUnit
{
[Obsolete(ObsoleteMessages.FrameworkPackages)]
public class CodeRefactoringVerifier<TCodeRefactoring> : CSharpCodeRefactoringVerifier<TCodeRefactoring, XUnitVerifier>
where TCodeRefactoring : CodeRefactoringProvider, new()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
using Microsoft.CodeAnalysis.Testing;

namespace Microsoft.CodeAnalysis.CSharp.Testing.MSTest
{
[Obsolete(ObsoleteMessages.FrameworkPackages)]
public static class SourceGeneratorVerifier
{
public static SourceGeneratorVerifier<TSourceGenerator> Create<TSourceGenerator>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
using Microsoft.CodeAnalysis.Testing;
using Microsoft.CodeAnalysis.Testing.Verifiers;

namespace Microsoft.CodeAnalysis.CSharp.Testing.MSTest
{
[Obsolete(ObsoleteMessages.FrameworkPackages)]
public class SourceGeneratorVerifier<TSourceGenerator> : CSharpSourceGeneratorVerifier<TSourceGenerator, MSTestVerifier>
where TSourceGenerator : new()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
using Microsoft.CodeAnalysis.Testing;

namespace Microsoft.CodeAnalysis.CSharp.Testing.NUnit
{
[Obsolete(ObsoleteMessages.FrameworkPackages)]
public static class SourceGeneratorVerifier
{
public static SourceGeneratorVerifier<TSourceGenerator> Create<TSourceGenerator>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
using Microsoft.CodeAnalysis.Testing;
using Microsoft.CodeAnalysis.Testing.Verifiers;

namespace Microsoft.CodeAnalysis.CSharp.Testing.NUnit
{
[Obsolete(ObsoleteMessages.FrameworkPackages)]
public class SourceGeneratorVerifier<TSourceGenerator> : CSharpSourceGeneratorVerifier<TSourceGenerator, NUnitVerifier>
where TSourceGenerator : new()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
using Microsoft.CodeAnalysis.Testing;

namespace Microsoft.CodeAnalysis.CSharp.Testing.XUnit
{
[Obsolete(ObsoleteMessages.FrameworkPackages)]
public static class SourceGeneratorVerifier
{
public static SourceGeneratorVerifier<TSourceGenerator> Create<TSourceGenerator>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
using Microsoft.CodeAnalysis.Testing;
using Microsoft.CodeAnalysis.Testing.Verifiers;

namespace Microsoft.CodeAnalysis.CSharp.Testing.XUnit
{
[Obsolete(ObsoleteMessages.FrameworkPackages)]
public class SourceGeneratorVerifier<TSourceGenerator> : CSharpSourceGeneratorVerifier<TSourceGenerator, XUnitVerifier>
where TSourceGenerator : new()
{
Expand Down
Loading