Skip to content

use some new language features #290

use some new language features

use some new language features #290

Triggered via push October 20, 2024 20:29
Status Success
Total duration 4m 14s
Artifacts

test.yml

on: push
Matrix: Build & Test
Fit to window
Zoom out
Zoom in

Annotations

20 warnings
Build & Test (ubuntu-latest): src/CommonUtilities.TestingUtilities/CollectionAsserts.cs#L17
Possible null reference argument for parameter 'source' in 'IEnumerable<object> Enumerable.Cast<object>(IEnumerable source)'.
Build & Test (ubuntu-latest): src/CommonUtilities.TestingUtilities/Collections/INonModifyingEnumerableTestSuite.cs#L371
The type 'T' cannot be used as type parameter 'TKey' in the generic type or method 'Dictionary<TKey, TValue>'. Nullability of type argument 'T' doesn't match 'notnull' constraint.
Build & Test (ubuntu-latest): src/CommonUtilities.TestingUtilities/Collections/INonModifyingEnumerableTestSuite.cs#L372
The type 'T' cannot be used as type parameter 'TKey' in the generic type or method 'Dictionary<TKey, TValue>'. Nullability of type argument 'T' doesn't match 'notnull' constraint.
Build & Test (ubuntu-latest): src/CommonUtilities.TestingUtilities/Collections/IReadOnlyListTestSuite.cs#L43
Theory method 'From_IEnumerable' on test class 'IReadOnlyListTestSuite' does not use parameter '__'. Use the parameter, or remove the parameter and associated data. (https://xunit.net/xunit.analyzers/rules/xUnit1026)
Build & Test (ubuntu-latest): src/CommonUtilities/test/Extensions/EncodingExtensionsTest.cs#L305
The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
Build & Test (ubuntu-latest): src/CommonUtilities/test/Collections/ReadOnlyFrugalListTestBase.cs#L41
Do not use Assert.Equal() to check for collection size. Use Assert.Empty instead. (https://xunit.net/xunit.analyzers/rules/xUnit2013)
Build & Test (ubuntu-latest): src/CommonUtilities/test/Collections/ReadOnlyFrugalListTestBase.cs#L40
Do not use Assert.NotNull() on value type 'ReadOnlyFrugalList<T>'. Remove this assert. (https://xunit.net/xunit.analyzers/rules/xUnit2002)
Build & Test (ubuntu-latest): src/CommonUtilities/test/Collections/FrugalListTestBase.cs#L44
Do not use Assert.Equal() to check for collection size. Use Assert.Empty instead. (https://xunit.net/xunit.analyzers/rules/xUnit2013)
Build & Test (ubuntu-latest): src/CommonUtilities/test/Collections/FrugalListTestBase.cs#L52
Do not use Assert.Equal() to check for collection size. Use Assert.Empty instead. (https://xunit.net/xunit.analyzers/rules/xUnit2013)
Build & Test (ubuntu-latest): src/CommonUtilities/test/Collections/FrugalListTestBase.cs#L61
Do not use Assert.Equal() to check for collection size. Use Assert.Single instead. (https://xunit.net/xunit.analyzers/rules/xUnit2013)
Build & Test (windows-latest): src/CommonUtilities.TestingUtilities/Collections/INonModifyingEnumerableTestSuite.cs#L371
The type 'T' cannot be used as type parameter 'TKey' in the generic type or method 'Dictionary<TKey, TValue>'. Nullability of type argument 'T' doesn't match 'notnull' constraint.
Build & Test (windows-latest): src/CommonUtilities.TestingUtilities/Collections/INonModifyingEnumerableTestSuite.cs#L372
The type 'T' cannot be used as type parameter 'TKey' in the generic type or method 'Dictionary<TKey, TValue>'. Nullability of type argument 'T' doesn't match 'notnull' constraint.
Build & Test (windows-latest): src/CommonUtilities.TestingUtilities/CollectionAsserts.cs#L17
Possible null reference argument for parameter 'source' in 'IEnumerable<object> Enumerable.Cast<object>(IEnumerable source)'.
Build & Test (windows-latest): src/CommonUtilities.TestingUtilities/Collections/IReadOnlyListTestSuite.cs#L43
Theory method 'From_IEnumerable' on test class 'IReadOnlyListTestSuite' does not use parameter '__'. Use the parameter, or remove the parameter and associated data. (https://xunit.net/xunit.analyzers/rules/xUnit1026)
Build & Test (windows-latest): src/CommonUtilities.TestingUtilities/Collections/IReadOnlyListTestSuite.cs#L43
Theory method 'From_IEnumerable' on test class 'IReadOnlyListTestSuite' does not use parameter '__'. Use the parameter, or remove the parameter and associated data. (https://xunit.net/xunit.analyzers/rules/xUnit1026)
Build & Test (windows-latest): src/CommonUtilities/test/Extensions/EncodingExtensionsTest.cs#L305
The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
Build & Test (windows-latest): src/CommonUtilities/test/Collections/ReadOnlyFrugalListTestBase.cs#L41
Do not use Assert.Equal() to check for collection size. Use Assert.Empty instead. (https://xunit.net/xunit.analyzers/rules/xUnit2013)
Build & Test (windows-latest): src/CommonUtilities/test/Collections/ReadOnlyFrugalListTestBase.cs#L40
Do not use Assert.NotNull() on value type 'ReadOnlyFrugalList<T>'. Remove this assert. (https://xunit.net/xunit.analyzers/rules/xUnit2002)
Build & Test (windows-latest): src/CommonUtilities/test/Collections/ReadOnlyFrugalListTestBase.cs#L60
Do not use Assert.Equal() to check for collection size. Use Assert.Single instead. (https://xunit.net/xunit.analyzers/rules/xUnit2013)
Build & Test (windows-latest): src/CommonUtilities/test/Collections/ReadOnlyFrugalListTestBase.cs#L66
Theory method 'Ctor_ModificationsGetNotReflectedWhenOriginalListChanges' on test class 'ReadOnlyFrugalListTestBase' does not use parameter '__'. Use the parameter, or remove the parameter and associated data. (https://xunit.net/xunit.analyzers/rules/xUnit1026)