< Summary

Information
Class: TestUtilities.StringAssertions.StringAssertionExtensions
Assembly: TestUtilities
File(s): /home/runner/work/KicktippAi/KicktippAi/src/TestUtilities/StringAssertions/StringAssertionExtensions.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 16
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
IsEqualToWithNormalizedLineEndings(...)100%11100%

File(s)

/home/runner/work/KicktippAi/KicktippAi/src/TestUtilities/StringAssertions/StringAssertionExtensions.cs

#LineLine coverage
 1using System.Runtime.CompilerServices;
 2using TUnit.Assertions.Core;
 3
 4namespace TestUtilities.StringAssertions;
 5
 6public static class StringAssertionExtensions
 7{
 8    public static StringEqualsWithNormalizedLineEndingsAssertion IsEqualToWithNormalizedLineEndings(
 9        this IAssertionSource<string> source,
 10        string expected,
 11        [CallerArgumentExpression(nameof(expected))] string? expectedExpression = null)
 12    {
 113        source.Context.ExpressionBuilder.Append($".IsEqualToWithNormalizedLineEndings({expectedExpression})");
 114        return new StringEqualsWithNormalizedLineEndingsAssertion(source.Context, expected);
 15    }
 16}