Skip to content

Commit

Permalink
Bump test dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
zsolt-kolbay-sonarsource authored and pavel-mikula-sonarsource committed Aug 24, 2023
1 parent 94de792 commit f7405cb
Show file tree
Hide file tree
Showing 5 changed files with 140 additions and 145 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ public void Cfg_If_ElseIf()
secondCondition.SuccessorBlocks.Should().BeEquivalentTo(new[] { trueBlockY, exitBlock });
secondCondition.BranchingNode.Kind().Should().Be(SyntaxKind.FalseLiteralExpression);

exitBlock.PredecessorBlocks.Should().BeEquivalentTo(new[] { trueBlockX, trueBlockY, secondCondition });
exitBlock.PredecessorBlocks.Should().BeEquivalentTo(new[] { trueBlockX, trueBlockY, secondCondition }, x => x.IgnoringCyclicReferences());
}

[TestMethod]
Expand All @@ -417,7 +417,7 @@ public void Cfg_If_ElseIf_Else()
trueBlockY.SuccessorBlocks.Should().Equal(exitBlock);
falseBlockZ.SuccessorBlocks.Should().Equal(exitBlock);

exitBlock.PredecessorBlocks.Should().BeEquivalentTo(new[] { trueBlockX, trueBlockY, falseBlockZ });
exitBlock.PredecessorBlocks.Should().BeEquivalentTo(new[] { trueBlockX, trueBlockY, falseBlockZ }, x => x.IgnoringCyclicReferences());
}

[TestMethod]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<IsPackable>false</IsPackable>
Expand All @@ -25,19 +25,19 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="altcover" Version="8.6.61" />
<PackageReference Include="FluentAssertions" Version="6.11.0" />
<PackageReference Include="FluentAssertions.Analyzers" Version="0.20.0">
<PackageReference Include="altcover" Version="8.6.68" />
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="FluentAssertions.Analyzers" Version="0.23.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.6.2" />
<PackageReference Include="MSTest.TestAdapter" Version="3.0.4" />
<PackageReference Include="MSTest.TestFramework" Version="3.0.4" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.1" />
<PackageReference Include="MSTest.TestAdapter" Version="3.1.1" />
<PackageReference Include="MSTest.TestFramework" Version="3.1.1" />
<PackageReference Include="Moq" Version="4.18.4" />
<PackageReference Include="Microsoft.CodeAnalysis.Workspaces.Common" Version="4.6.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.6.0" />
<PackageReference Include="Microsoft.CodeAnalysis.VisualBasic.Workspaces" Version="4.6.0" />
<PackageReference Include="Microsoft.CodeAnalysis.Workspaces.Common" Version="4.7.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.7.0" />
<PackageReference Include="Microsoft.CodeAnalysis.VisualBasic.Workspaces" Version="4.7.0" />
<PackageReference Include="Microsoft.Composition" Version="1.0.27">
<!-- This package is a dependency of Microsoft.CodeAnalysis.CSharp.Workspaces. It is safe to use since it's compatible with .Net Portable runtime -->
<NoWarn>NU1701</NoWarn>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using System;

file class ClassNotExtended { } // Noncompliant {{File-scoped classes which are not derived in the current file should be marked as 'sealed'.}}
file class ClassNotExtended { } // Noncompliant {{File-scoped classes which are not derived in the current file should be marked as 'sealed'.}}
// ^^^^^^^^^^^^^^^^
file record RecordNotExtended { } // Noncompliant {{File-scoped record classes which are not derived in the current file should be marked as 'sealed'.}}
file record RecordNotExtended { } // Noncompliant {{File-scoped record classes which are not derived in the current file should be marked as 'sealed'.}}
// ^^^^^^^^^^^^^^^^^
file record class RecordNotExtended2 { } // Noncompliant {{File-scoped record classes which are not derived in the current file should be marked as 'sealed'.}}
file record class RecordNotExtended2 { } // Noncompliant {{File-scoped record classes which are not derived in the current file should be marked as 'sealed'.}}
// ^^^^^^^^^^^^^^^^^^

file class FileClassVirtualMethod // Compliant, the class has a virtual member.
Expand Down Expand Up @@ -52,52 +52,52 @@ public virtual event EventHandler Foo

file sealed class ClassNotExtendedButFile { }

file struct AStruct { } // Compliant, structs cannot be inherited.
file record struct ARecordStruct { } // Compliant, record structs cannot be inherited.
file struct AStruct { } // Compliant, structs cannot be inherited.
file record struct ARecordStruct { } // Compliant, record structs cannot be inherited.

file static class FileStaticClass { } // Compliant, static classes cannot be inherited.
file static class FileStaticClass { } // Compliant, static classes cannot be inherited.

file abstract class FileAbstractClass { } // Compliant, abstract classes cannot be sealed.


namespace GenericClasses
{
file class NotInheritedGenericClass<T> { } // Noncompliant
file class InheritedGenericClass<T> { } // Compliant
file class NotInheritedGenericClass<T> { } // Noncompliant
file class InheritedGenericClass<T> { } // Compliant

file class ImplementationClass : InheritedGenericClass<int> { } // Noncompliant
file class ImplementationClass<T> : InheritedGenericClass<T> { } // Noncompliant
file class ImplementationClass : InheritedGenericClass<int> { } // Noncompliant
file class ImplementationClass<T> : InheritedGenericClass<T> { } // Noncompliant

file sealed class SealedImplementationClass : InheritedGenericClass<int> { } // Compliant
file sealed class SealedImplementationClass<T> : InheritedGenericClass<T> { } // Compliant
abstract class AbstractImplementationClass : InheritedGenericClass<int> { } // Compliant
abstract class AbstractImplementationClass<T> : InheritedGenericClass<T> { } // Compliant
file sealed class SealedImplementationClass : InheritedGenericClass<int> { } // Compliant
file sealed class SealedImplementationClass<T> : InheritedGenericClass<T> { } // Compliant
file abstract class AbstractImplementationClass : InheritedGenericClass<int> { } // Compliant
file abstract class AbstractImplementationClass<T> : InheritedGenericClass<T> { } // Compliant
}

namespace GenericRecords
{
file record NotInheritedGenericRecord<T> { } // Noncompliant
file record InheritedGenericRecord<T> { } // Compliant
file record NotInheritedGenericRecord<T> { } // Noncompliant
file record InheritedGenericRecord<T> { } // Compliant

file record ImplementationRecord : InheritedGenericRecord<int> { } // Noncompliant
file record ImplementationRecord : InheritedGenericRecord<int> { } // Noncompliant
file record ImplementationRecord<T> : InheritedGenericRecord<T> { } // Noncompliant

file sealed record SealedImplementationRecord : InheritedGenericRecord<int> { } // Compliant
file sealed record SealedImplementationRecord<T> : InheritedGenericRecord<T> { } // Compliant
abstract record AbstractImplementationRecord : InheritedGenericRecord<int> { } // Compliant
abstract record AbstractImplementationRecord<T> : InheritedGenericRecord<T> { } // Compliant
file sealed record SealedImplementationRecord : InheritedGenericRecord<int> { } // Compliant
file sealed record SealedImplementationRecord<T> : InheritedGenericRecord<T> { } // Compliant
file abstract record AbstractImplementationRecord : InheritedGenericRecord<int> { } // Compliant
file abstract record AbstractImplementationRecord<T> : InheritedGenericRecord<T> { } // Compliant
}

namespace GenericRecordClasses
{
file record class NotInheritedGenericRecord<T> { } // Noncompliant
file record class InheritedGenericRecord<T> { } // Compliant
file record class NotInheritedGenericRecord<T> { } // Noncompliant
file record class InheritedGenericRecord<T> { } // Compliant

file record class ImplementationRecord : InheritedGenericRecord<int> { } // Noncompliant
file record class ImplementationRecord<T> : InheritedGenericRecord<T> { } // Noncompliant
file record class ImplementationRecord : InheritedGenericRecord<int> { } // Noncompliant
file record class ImplementationRecord<T> : InheritedGenericRecord<T> { } // Noncompliant

file sealed record class SealedImplementationRecord : InheritedGenericRecord<int> { } // Compliant
file sealed record class SealedImplementationRecord<T> : InheritedGenericRecord<T> { } // Compliant
abstract record class AbstractImplementationRecord : InheritedGenericRecord<int> { } // Compliant
abstract record class AbstractImplementationRecord<T> : InheritedGenericRecord<T> { } // Compliant
file sealed record class SealedImplementationRecord : InheritedGenericRecord<int> { } // Compliant
file sealed record class SealedImplementationRecord<T> : InheritedGenericRecord<T> { } // Compliant
file abstract record class AbstractImplementationRecord : InheritedGenericRecord<int> { } // Compliant
file abstract record class AbstractImplementationRecord<T> : InheritedGenericRecord<T> { } // Compliant
}
Loading

0 comments on commit f7405cb

Please sign in to comment.