Skip to content
Merged
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
2 changes: 1 addition & 1 deletion src/MandMCounter.Tests/MandMTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@
catch (Exception ex)
{
//Assert
Assert.IsTrue(ex != null);

Check warning on line 238 in src/MandMCounter.Tests/MandMTests.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

Use 'Assert.IsNotNull' instead of 'Assert.IsTrue' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0037)

Check warning on line 238 in src/MandMCounter.Tests/MandMTests.cs

View workflow job for this annotation

GitHub Actions / Build .NET

Use 'Assert.IsNotNull' instead of 'Assert.IsTrue' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0037)
}
}

Expand Down Expand Up @@ -329,12 +329,12 @@
float radius = 5;

//Act
float result = Calculator.CountMandMs(unit, height, radius);
Calculator.CountMandMs(unit, height, radius);
}
catch (Exception ex)
{
//Assert
Assert.IsTrue(ex != null);

Check warning on line 337 in src/MandMCounter.Tests/MandMTests.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

Use 'Assert.IsNotNull' instead of 'Assert.IsTrue' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0037)

Check warning on line 337 in src/MandMCounter.Tests/MandMTests.cs

View workflow job for this annotation

GitHub Actions / Build .NET

Use 'Assert.IsNotNull' instead of 'Assert.IsTrue' (https://learn.microsoft.com/dotnet/core/testing/mstest-analyzers/mstest0037)
}
}

Expand Down
Loading