Skip to content

Commit

Permalink
NET-686 Pin version for Microsoft.Azure.WebJobs.Extensions.DurableTas…
Browse files Browse the repository at this point in the history
…k to 2.13.7 for .NET Framework UTs (#462)
  • Loading branch information
Tim-Pohlmann authored and mary-georgiou-sonarsource committed Nov 27, 2024
1 parent b26c051 commit 5e532ba
Showing 1 changed file with 22 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,32 @@

using SonarAnalyzer.Rules.CSharp;

namespace SonarAnalyzer.Test.Rules
{
[TestClass]
public class DurableEntityInterfaceRestrictionsTest
{
private readonly VerifierBuilder builder = new VerifierBuilder<DurableEntityInterfaceRestrictions>()
.WithBasePath("CloudNative")
.AddReferences(NuGetMetadataReference.MicrosoftAzureWebJobsExtensionsDurableTask());

[TestMethod]
public void DurableEntityInterfaceRestrictions_CS() =>
builder.AddPaths("DurableEntityInterfaceRestrictions.cs").Verify();
namespace SonarAnalyzer.Test.Rules;

[TestClass]
public class DurableEntityInterfaceRestrictionsTest
{
#if NET
private readonly VerifierBuilder builder = new VerifierBuilder<DurableEntityInterfaceRestrictions>()
.WithBasePath("CloudNative")
.AddReferences(NuGetMetadataReference.MicrosoftAzureWebJobsExtensionsDurableTask());

[TestMethod]
public void DurableEntityInterfaceRestrictions_CSharp11() =>
builder.AddPaths("DurableEntityInterfaceRestrictions.CSharp11.cs")
.WithOptions(ParseOptionsHelper.FromCSharp11)
.Verify();

[TestMethod]
public void DurableEntityInterfaceRestrictions_CSharp11() =>
builder.AddPaths("DurableEntityInterfaceRestrictions.CSharp11.cs")
.WithOptions(ParseOptionsHelper.FromCSharp11)
.Verify();
[TestMethod]
public void DurableEntityInterfaceRestrictions_CS_NET() =>
builder.AddPaths("DurableEntityInterfaceRestrictions.cs").Verify();

#endif

}
[TestMethod]
public void DurableEntityInterfaceRestrictions_CS() =>
new VerifierBuilder<DurableEntityInterfaceRestrictions>()
.AddReferences(NuGetMetadataReference.MicrosoftAzureWebJobsExtensionsDurableTask("2.13.7"))
.WithBasePath("CloudNative")
.AddPaths("DurableEntityInterfaceRestrictions.cs").Verify();
}

0 comments on commit 5e532ba

Please sign in to comment.