test: add xUnit migration tests for Assert.Empty and using directive removal #14709
Annotations
3 errors and 31 warnings
|
The run was canceled by @thomhurst.
|
|
The run was canceled by @thomhurst.
|
|
|
|
|
|
TUnit.TestProject/SimpleGenericTests.cs#L59
Argument of type 'ValueAssertion<T2>' cannot be used for parameter 'source' of type 'IAssertionSource<T2?>' in 'NotEqualsAssertion<T2?> NotEqualsAssertionExtensions.IsNotEqualTo<T2?>(IAssertionSource<T2?> source, T2? notExpected, IEqualityComparer<T2?>? comparer = null, string? notExpectedExpression = null, string? comparerExpression = null)' due to differences in the nullability of reference types.
|
|
TUnit.TestProject/SimpleGenericTests.cs#L58
Argument of type 'ValueAssertion<T>' cannot be used for parameter 'source' of type 'IAssertionSource<T?>' in 'NotEqualsAssertion<T?> NotEqualsAssertionExtensions.IsNotEqualTo<T?>(IAssertionSource<T?> source, T? notExpected, IEqualityComparer<T?>? comparer = null, string? notExpectedExpression = null, string? comparerExpression = null)' due to differences in the nullability of reference types.
|
|
TUnit.TestProject/TestCountVerificationTests.cs#L6
Parameter 'value' is unread.
|
|
TUnit.TestProject/Tests.cs#L293
'CollectionAssertionBase<IList<int>, int>.HasCount()' is obsolete: 'Use Count() instead, which provides all numeric assertion methods. Example: Assert.That(list).Count().IsGreaterThan(5)'
|
|
TUnit.TestProject/Tests.cs#L260
'CollectionAssertionBase<IList<int>, int>.HasCount()' is obsolete: 'Use Count() instead, which provides all numeric assertion methods. Example: Assert.That(list).Count().IsGreaterThan(5)'
|
|
TUnit.TestProject/Tests.cs#L252
'AssertionExtensions.HasLength(IAssertionSource<string>)' is obsolete: 'Use Length() instead, which provides all numeric assertion methods. Example: Assert.That(str).Length().IsGreaterThan(5)'
|
|
TUnit.TestProject/Tests.cs#L245
'AssertionExtensions.HasLength(IAssertionSource<string>)' is obsolete: 'Use Length() instead, which provides all numeric assertion methods. Example: Assert.That(str).Length().IsGreaterThan(5)'
|
|
TUnit.TestProject/Tests.cs#L67
'AssertionExtensions.HasLength(IAssertionSource<string>)' is obsolete: 'Use Length() instead, which provides all numeric assertion methods. Example: Assert.That(str).Length().IsGreaterThan(5)'
|
|
TUnit.TestProject/TimeoutCancellationTokenTests.cs#L104
Parameter 'value' is unread.
|
|
TUnit.TestProject/TransactionTest.cs#L11
Non-nullable field '_scope' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.
|
|
TUnit.Assertions.SourceGenerator/Generators/MethodAssertionGenerator.cs#L51
Enable analyzer release tracking for the analyzer project containing rule 'TUNITGEN004' (https://github.com/dotnet/roslyn-analyzers/blob/main/src/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md)
|
|
TUnit.Assertions.SourceGenerator/Generators/MethodAssertionGenerator.cs#L24
Enable analyzer release tracking for the analyzer project containing rule 'TUNITGEN001' (https://github.com/dotnet/roslyn-analyzers/blob/main/src/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md)
|
|
TUnit.Assertions.SourceGenerator/Generators/MethodAssertionGenerator.cs#L53
The diagnostic message should not contain any line return character nor any leading or trailing whitespaces and should either be a single sentence without a trailing period or a multi-sentences with a trailing period
|
|
TUnit.Assertions.SourceGenerator/Generators/MethodAssertionGenerator.cs#L33
Enable analyzer release tracking for the analyzer project containing rule 'TUNITGEN002' (https://github.com/dotnet/roslyn-analyzers/blob/main/src/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md)
|
|
TUnit.Assertions.SourceGenerator/Generators/AssertionExtensionGenerator.cs#L373
Converting null literal or possible null value to non-nullable type.
|
|
TUnit.Assertions.SourceGenerator/Generators/AssertionExtensionGenerator.cs#L372
Converting null literal or possible null value to non-nullable type.
|
|
TUnit.Assertions.SourceGenerator/Generators/AssertionExtensionGenerator.cs#L364
Converting null literal or possible null value to non-nullable type.
|
|
TUnit.Assertions.SourceGenerator/Generators/AssertionExtensionGenerator.cs#L363
Converting null literal or possible null value to non-nullable type.
|
|
TUnit.Assertions.SourceGenerator/Generators/MethodAssertionGenerator.cs#L785
Dereference of a possibly null reference.
|
|
TUnit.Assertions.Analyzers/AnalyzerReleases.Shipped.md#L5
Analyzer release file 'AnalyzerReleases.Shipped.md' has a missing or invalid release header '#### Assertion Usage Rules' (https://github.com/dotnet/roslyn-analyzers/blob/main/src/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md)
|
|
TUnit.Assertions.SourceGenerator/Generators/MethodAssertionGenerator.cs#L53
The diagnostic message should not contain any line return character nor any leading or trailing whitespaces and should either be a single sentence without a trailing period or a multi-sentences with a trailing period
|
|
TUnit.Assertions.SourceGenerator/Generators/MethodAssertionGenerator.cs#L42
Enable analyzer release tracking for the analyzer project containing rule 'TUNITGEN003' (https://github.com/dotnet/roslyn-analyzers/blob/main/src/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md)
|
|
TUnit.Assertions.SourceGenerator/Generators/MethodAssertionGenerator.cs#L44
The diagnostic message should not contain any line return character nor any leading or trailing whitespaces and should either be a single sentence without a trailing period or a multi-sentences with a trailing period
|
|
TUnit.Assertions.SourceGenerator/Generators/MethodAssertionGenerator.cs#L33
Enable analyzer release tracking for the analyzer project containing rule 'TUNITGEN002' (https://github.com/dotnet/roslyn-analyzers/blob/main/src/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md)
|
|
TUnit.Assertions.SourceGenerator/Generators/MethodAssertionGenerator.cs#L24
Enable analyzer release tracking for the analyzer project containing rule 'TUNITGEN001' (https://github.com/dotnet/roslyn-analyzers/blob/main/src/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md)
|
|
TUnit.Assertions.SourceGenerator/Generators/MethodAssertionGenerator.cs#L785
Dereference of a possibly null reference.
|
|
TUnit.Assertions.SourceGenerator/Generators/AssertionExtensionGenerator.cs#L373
Converting null literal or possible null value to non-nullable type.
|
|
TUnit.Assertions.SourceGenerator/Generators/AssertionExtensionGenerator.cs#L372
Converting null literal or possible null value to non-nullable type.
|
|
TUnit.Assertions.SourceGenerator/Generators/AssertionExtensionGenerator.cs#L364
Converting null literal or possible null value to non-nullable type.
|
|
TUnit.Assertions.SourceGenerator/Generators/AssertionExtensionGenerator.cs#L363
Converting null literal or possible null value to non-nullable type.
|
The logs for this run have expired and are no longer available.
Loading