Skip to content
GitHub Actions / Tests succeeded May 17, 2024 in 0s

88 passed, 0 failed and 0 skipped

Tests passed successfully

✅ ImmutableAnalyzer/ImmutableAnalyzer.Tests/TestResults/test-results.trx

88 tests were completed in 7s with 88 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
ImmutableAnalyzer.Tests.PropertyAnalyzersTests.PropertyTypeTests.PropertyTypeAnalyzerTests 42✅ 5s
ImmutableAnalyzer.Tests.PropertyAnalyzersTests.SetAccessorTests.SetAccessorAnalyzerTests 4✅ 3s
ImmutableAnalyzer.Tests.PropertyAnalyzersTests.SetAccessorTests.SetAccessorCodeFixTests 3✅ 5s
ImmutableAnalyzer.Tests.RecordAnalyzersTests.ParameterTypeAnalyzerTests 39✅ 6s

✅ ImmutableAnalyzer.Tests.PropertyAnalyzersTests.PropertyTypeTests.PropertyTypeAnalyzerTests

✅ Class_with_enum_property_type_should_be_immutable
✅ Class_with_immutable_property_should_be_immutable(property: "Boolean")
✅ Class_with_immutable_property_should_be_immutable(property: "Byte")
✅ Class_with_immutable_property_should_be_immutable(property: "Char")
✅ Class_with_immutable_property_should_be_immutable(property: "DateTime")
✅ Class_with_immutable_property_should_be_immutable(property: "Decimal")
✅ Class_with_immutable_property_should_be_immutable(property: "Double")
✅ Class_with_immutable_property_should_be_immutable(property: "Enum")
✅ Class_with_immutable_property_should_be_immutable(property: "Guid")
✅ Class_with_immutable_property_should_be_immutable(property: "ImmutableArray<Int32>")
✅ Class_with_immutable_property_should_be_immutable(property: "ImmutableDictionary<Int32,Int32>")
✅ Class_with_immutable_property_should_be_immutable(property: "ImmutableHashSet<Int32>")
✅ Class_with_immutable_property_should_be_immutable(property: "ImmutableList<Int32>")
✅ Class_with_immutable_property_should_be_immutable(property: "ImmutableQueue<Int32>")
✅ Class_with_immutable_property_should_be_immutable(property: "ImmutableSortedDictionary<Int32,Int32>")
✅ Class_with_immutable_property_should_be_immutable(property: "ImmutableSortedSet<Int32>")
✅ Class_with_immutable_property_should_be_immutable(property: "ImmutableStack<Int32>")
✅ Class_with_immutable_property_should_be_immutable(property: "Int16")
✅ Class_with_immutable_property_should_be_immutable(property: "Int32")
✅ Class_with_immutable_property_should_be_immutable(property: "Int64")
✅ Class_with_immutable_property_should_be_immutable(property: "IReadOnlyCollection<Int32>")
✅ Class_with_immutable_property_should_be_immutable(property: "IReadOnlyDictionary<Int32,Int32>")
✅ Class_with_immutable_property_should_be_immutable(property: "IReadOnlyList<Int32>")
✅ Class_with_immutable_property_should_be_immutable(property: "SByte")
✅ Class_with_immutable_property_should_be_immutable(property: "Single")
✅ Class_with_immutable_property_should_be_immutable(property: "String")
✅ Class_with_immutable_property_should_be_immutable(property: "UInt16")
✅ Class_with_immutable_property_should_be_immutable(property: "UInt32")
✅ Class_with_immutable_property_should_be_immutable(property: "UInt64")
✅ Class_with_mutable_property_should_not_be_immutable(property: "Dictionary<int, int>")
✅ Class_with_mutable_property_should_not_be_immutable(property: "HashSet<int>")
✅ Class_with_mutable_property_should_not_be_immutable(property: "ICollection<int>")
✅ Class_with_mutable_property_should_not_be_immutable(property: "IDictionary<int, int>")
✅ Class_with_mutable_property_should_not_be_immutable(property: "IEnumerable<int>")
✅ Class_with_mutable_property_should_not_be_immutable(property: "IList<int>")
✅ Class_with_mutable_property_should_not_be_immutable(property: "ISet<int>")
✅ Class_with_mutable_property_should_not_be_immutable(property: "List<int>")
✅ Class_with_mutable_property_should_not_be_immutable(property: "Object")
✅ Class_with_mutable_property_should_not_be_immutable(property: "Queue<int>")
✅ Class_with_mutable_property_should_not_be_immutable(property: "Stack<int>")
✅ Class_with_user_defined_immutable_property_type_should_be_immutable
✅ Class_with_user_defined_mutable_property_type_should_not_be_immutable

✅ ImmutableAnalyzer.Tests.PropertyAnalyzersTests.SetAccessorTests.SetAccessorAnalyzerTests

✅ Immutable_class_property_could_have_init_setter
✅ Immutable_class_property_could_have_no_setter
✅ Immutable_class_property_could_have_private_setter
✅ Immutable_class_property_could_not_have_a_public_setter

✅ ImmutableAnalyzer.Tests.PropertyAnalyzersTests.SetAccessorTests.SetAccessorCodeFixTests

✅ Immutable_class_with_public_set_accessor_should_be_fixed_with_init_keyword
✅ Immutable_class_with_public_set_accessor_should_be_fixed_with_private_set
✅ Immutable_class_with_public_set_accessor_should_be_removed

✅ ImmutableAnalyzer.Tests.RecordAnalyzersTests.ParameterTypeAnalyzerTests

✅ Record_with_immutable_property_should_be_immutable(property: "Boolean")
✅ Record_with_immutable_property_should_be_immutable(property: "Byte")
✅ Record_with_immutable_property_should_be_immutable(property: "Char")
✅ Record_with_immutable_property_should_be_immutable(property: "DateTime")
✅ Record_with_immutable_property_should_be_immutable(property: "Decimal")
✅ Record_with_immutable_property_should_be_immutable(property: "Double")
✅ Record_with_immutable_property_should_be_immutable(property: "Enum")
✅ Record_with_immutable_property_should_be_immutable(property: "Guid")
✅ Record_with_immutable_property_should_be_immutable(property: "ImmutableArray<Int32>")
✅ Record_with_immutable_property_should_be_immutable(property: "ImmutableDictionary<Int32,Int32>")
✅ Record_with_immutable_property_should_be_immutable(property: "ImmutableHashSet<Int32>")
✅ Record_with_immutable_property_should_be_immutable(property: "ImmutableList<Int32>")
✅ Record_with_immutable_property_should_be_immutable(property: "ImmutableQueue<Int32>")
✅ Record_with_immutable_property_should_be_immutable(property: "ImmutableSortedDictionary<Int32,Int32>")
✅ Record_with_immutable_property_should_be_immutable(property: "ImmutableSortedSet<Int32>")
✅ Record_with_immutable_property_should_be_immutable(property: "ImmutableStack<Int32>")
✅ Record_with_immutable_property_should_be_immutable(property: "Int16")
✅ Record_with_immutable_property_should_be_immutable(property: "Int32")
✅ Record_with_immutable_property_should_be_immutable(property: "Int64")
✅ Record_with_immutable_property_should_be_immutable(property: "IReadOnlyCollection<Int32>")
✅ Record_with_immutable_property_should_be_immutable(property: "IReadOnlyDictionary<Int32,Int32>")
✅ Record_with_immutable_property_should_be_immutable(property: "IReadOnlyList<Int32>")
✅ Record_with_immutable_property_should_be_immutable(property: "SByte")
✅ Record_with_immutable_property_should_be_immutable(property: "Single")
✅ Record_with_immutable_property_should_be_immutable(property: "String")
✅ Record_with_immutable_property_should_be_immutable(property: "UInt16")
✅ Record_with_immutable_property_should_be_immutable(property: "UInt32")
✅ Record_with_immutable_property_should_be_immutable(property: "UInt64")
✅ Record_with_mutable_property_should_not_be_immutable(property: "Dictionary<int, int>")
✅ Record_with_mutable_property_should_not_be_immutable(property: "HashSet<int>")
✅ Record_with_mutable_property_should_not_be_immutable(property: "ICollection<int>")
✅ Record_with_mutable_property_should_not_be_immutable(property: "IDictionary<int, int>")
✅ Record_with_mutable_property_should_not_be_immutable(property: "IEnumerable<int>")
✅ Record_with_mutable_property_should_not_be_immutable(property: "IList<int>")
✅ Record_with_mutable_property_should_not_be_immutable(property: "ISet<int>")
✅ Record_with_mutable_property_should_not_be_immutable(property: "List<int>")
✅ Record_with_mutable_property_should_not_be_immutable(property: "Object")
✅ Record_with_mutable_property_should_not_be_immutable(property: "Queue<int>")
✅ Record_with_mutable_property_should_not_be_immutable(property: "Stack<int>")