diff --git a/test/Riok.Mapperly.Tests/TestSourceBuilder.cs b/test/Riok.Mapperly.Tests/TestSourceBuilder.cs index 5203409dc0..d3dd2f86fa 100644 --- a/test/Riok.Mapperly.Tests/TestSourceBuilder.cs +++ b/test/Riok.Mapperly.Tests/TestSourceBuilder.cs @@ -38,20 +38,21 @@ public static string MapperWithBody([StringSyntax(StringSyntax.CSharp)] string b { options ??= TestSourceBuilderOptions.Default; - return $@" -using System; -using System.Collections.Generic; -using Riok.Mapperly.Abstractions; -using Riok.Mapperly.Abstractions.ReferenceHandling; - -{(options.Namespace != null ? $"namespace {options.Namespace};" : string.Empty)} - -{BuildAttribute(options)} -public partial class Mapper -{{ - {body} -}} -"; + return CSharp( + $$""" + using System; + using System.Collections.Generic; + using Riok.Mapperly.Abstractions; + using Riok.Mapperly.Abstractions.ReferenceHandling; + + {{(options.Namespace != null ? $"namespace {options.Namespace};" : string.Empty)}} + + {{BuildAttribute(options)}} + public partial class Mapper + { + {{body}} + } + """); } public static string MapperWithBodyAndTypes( diff --git a/test/Riok.Mapperly.Tests/_snapshots/DictionaryTest.DictionaryToCustomDictionaryWithPrivateCtorShouldDiagnostic.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/DictionaryTest.DictionaryToCustomDictionaryWithPrivateCtorShouldDiagnostic.verified.txt index 73add26510..3bdc03409e 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/DictionaryTest.DictionaryToCustomDictionaryWithPrivateCtorShouldDiagnostic.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/DictionaryTest.DictionaryToCustomDictionaryWithPrivateCtorShouldDiagnostic.verified.txt @@ -5,7 +5,7 @@ Title: No accessible parameterless constructor found, Severity: Error, WarningLevel: 0, - Location: : (11,4)-(11,51), + Location: : (10,4)-(10,51), Description: , HelpLink: , MessageFormat: {0} has no accessible parameterless constructor, @@ -17,7 +17,7 @@ Title: No accessible parameterless constructor found, Severity: Error, WarningLevel: 0, - Location: : (11,4)-(11,51), + Location: : (10,4)-(10,51), Description: , HelpLink: , MessageFormat: {0} has no accessible parameterless constructor, @@ -29,7 +29,7 @@ Title: Could not create mapping, Severity: Error, WarningLevel: 0, - Location: : (11,4)-(11,51), + Location: : (10,4)-(10,51), Description: , HelpLink: , MessageFormat: Could not create mapping from {0} to {1}. Consider implementing the mapping manually., diff --git a/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByNameCaseInsensitive_testCase=SourceLowerMissingSource.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByNameCaseInsensitive_testCase=SourceLowerMissingSource.verified.txt index ac3ca781c9..6a83fe951a 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByNameCaseInsensitive_testCase=SourceLowerMissingSource.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByNameCaseInsensitive_testCase=SourceLowerMissingSource.verified.txt @@ -5,7 +5,7 @@ Title: An enum member could not be found on the source enum, Severity: Info, WarningLevel: 1, - Location: : (8,0)-(12,1), + Location: : (7,0)-(11,1), Description: , HelpLink: , MessageFormat: Enum member {0} ({1}) on {2} not found on source enum {3}, diff --git a/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByNameCaseInsensitive_testCase=TargetLowerMissingMultipleSource.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByNameCaseInsensitive_testCase=TargetLowerMissingMultipleSource.verified.txt index 7dc4799884..c7644875be 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByNameCaseInsensitive_testCase=TargetLowerMissingMultipleSource.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByNameCaseInsensitive_testCase=TargetLowerMissingMultipleSource.verified.txt @@ -5,7 +5,7 @@ Title: An enum member could not be found on the source enum, Severity: Info, WarningLevel: 1, - Location: : (8,0)-(12,1), + Location: : (7,0)-(11,1), Description: , HelpLink: , MessageFormat: Enum member {0} ({1}) on {2} not found on source enum {3}, @@ -17,7 +17,7 @@ Title: An enum member could not be found on the source enum, Severity: Info, WarningLevel: 1, - Location: : (8,0)-(12,1), + Location: : (7,0)-(11,1), Description: , HelpLink: , MessageFormat: Enum member {0} ({1}) on {2} not found on source enum {3}, diff --git a/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByNameCaseInsensitive_testCase=TargetLowerMissingMultipleTarget.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByNameCaseInsensitive_testCase=TargetLowerMissingMultipleTarget.verified.txt index dbe60bbfeb..c2b3fee746 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByNameCaseInsensitive_testCase=TargetLowerMissingMultipleTarget.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByNameCaseInsensitive_testCase=TargetLowerMissingMultipleTarget.verified.txt @@ -5,7 +5,7 @@ Title: An enum member could not be found on the target enum, Severity: Info, WarningLevel: 1, - Location: : (8,0)-(12,1), + Location: : (7,0)-(11,1), Description: , HelpLink: , MessageFormat: Enum member {0} ({1}) on {2} not found on target enum {3}, @@ -17,7 +17,7 @@ Title: An enum member could not be found on the target enum, Severity: Info, WarningLevel: 1, - Location: : (8,0)-(12,1), + Location: : (7,0)-(11,1), Description: , HelpLink: , MessageFormat: Enum member {0} ({1}) on {2} not found on target enum {3}, diff --git a/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByNameCaseInsensitive_testCase=TargetLowerMissingTarget.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByNameCaseInsensitive_testCase=TargetLowerMissingTarget.verified.txt index 383b1fe0cd..9597073afd 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByNameCaseInsensitive_testCase=TargetLowerMissingTarget.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByNameCaseInsensitive_testCase=TargetLowerMissingTarget.verified.txt @@ -5,7 +5,7 @@ Title: An enum member could not be found on the target enum, Severity: Info, WarningLevel: 1, - Location: : (8,0)-(12,1), + Location: : (7,0)-(11,1), Description: , HelpLink: , MessageFormat: Enum member {0} ({1}) on {2} not found on target enum {3}, diff --git a/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByStrategyMissingValues_testCase=ByNameMissingMultipleSource.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByStrategyMissingValues_testCase=ByNameMissingMultipleSource.verified.txt index 315e70e07a..833d747659 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByStrategyMissingValues_testCase=ByNameMissingMultipleSource.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByStrategyMissingValues_testCase=ByNameMissingMultipleSource.verified.txt @@ -5,7 +5,7 @@ Title: An enum member could not be found on the source enum, Severity: Info, WarningLevel: 1, - Location: : (8,0)-(12,1), + Location: : (7,0)-(11,1), Description: , HelpLink: , MessageFormat: Enum member {0} ({1}) on {2} not found on source enum {3}, @@ -17,7 +17,7 @@ Title: An enum member could not be found on the source enum, Severity: Info, WarningLevel: 1, - Location: : (8,0)-(12,1), + Location: : (7,0)-(11,1), Description: , HelpLink: , MessageFormat: Enum member {0} ({1}) on {2} not found on source enum {3}, diff --git a/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByStrategyMissingValues_testCase=ByNameMissingMultipleTarget.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByStrategyMissingValues_testCase=ByNameMissingMultipleTarget.verified.txt index 28348dee31..f65f5f85b5 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByStrategyMissingValues_testCase=ByNameMissingMultipleTarget.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByStrategyMissingValues_testCase=ByNameMissingMultipleTarget.verified.txt @@ -5,7 +5,7 @@ Title: An enum member could not be found on the target enum, Severity: Info, WarningLevel: 1, - Location: : (8,0)-(12,1), + Location: : (7,0)-(11,1), Description: , HelpLink: , MessageFormat: Enum member {0} ({1}) on {2} not found on target enum {3}, @@ -17,7 +17,7 @@ Title: An enum member could not be found on the target enum, Severity: Info, WarningLevel: 1, - Location: : (8,0)-(12,1), + Location: : (7,0)-(11,1), Description: , HelpLink: , MessageFormat: Enum member {0} ({1}) on {2} not found on target enum {3}, diff --git a/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByStrategyMissingValues_testCase=ByNameMissingSource.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByStrategyMissingValues_testCase=ByNameMissingSource.verified.txt index e0432e6d01..14dc2efb02 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByStrategyMissingValues_testCase=ByNameMissingSource.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByStrategyMissingValues_testCase=ByNameMissingSource.verified.txt @@ -5,7 +5,7 @@ Title: An enum member could not be found on the source enum, Severity: Info, WarningLevel: 1, - Location: : (8,0)-(12,1), + Location: : (7,0)-(11,1), Description: , HelpLink: , MessageFormat: Enum member {0} ({1}) on {2} not found on source enum {3}, diff --git a/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByStrategyMissingValues_testCase=ByNameMissingTarget.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByStrategyMissingValues_testCase=ByNameMissingTarget.verified.txt index 9d3c766d7d..02b64056b5 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByStrategyMissingValues_testCase=ByNameMissingTarget.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByStrategyMissingValues_testCase=ByNameMissingTarget.verified.txt @@ -5,7 +5,7 @@ Title: An enum member could not be found on the target enum, Severity: Info, WarningLevel: 1, - Location: : (8,0)-(12,1), + Location: : (7,0)-(11,1), Description: , HelpLink: , MessageFormat: Enum member {0} ({1}) on {2} not found on target enum {3}, diff --git a/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByStrategyMissingValues_testCase=ByValueMissingMultipleSource.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByStrategyMissingValues_testCase=ByValueMissingMultipleSource.verified.txt index 315e70e07a..833d747659 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByStrategyMissingValues_testCase=ByValueMissingMultipleSource.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByStrategyMissingValues_testCase=ByValueMissingMultipleSource.verified.txt @@ -5,7 +5,7 @@ Title: An enum member could not be found on the source enum, Severity: Info, WarningLevel: 1, - Location: : (8,0)-(12,1), + Location: : (7,0)-(11,1), Description: , HelpLink: , MessageFormat: Enum member {0} ({1}) on {2} not found on source enum {3}, @@ -17,7 +17,7 @@ Title: An enum member could not be found on the source enum, Severity: Info, WarningLevel: 1, - Location: : (8,0)-(12,1), + Location: : (7,0)-(11,1), Description: , HelpLink: , MessageFormat: Enum member {0} ({1}) on {2} not found on source enum {3}, diff --git a/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByStrategyMissingValues_testCase=ByValueMissingMultipleTarget.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByStrategyMissingValues_testCase=ByValueMissingMultipleTarget.verified.txt index 28348dee31..f65f5f85b5 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByStrategyMissingValues_testCase=ByValueMissingMultipleTarget.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByStrategyMissingValues_testCase=ByValueMissingMultipleTarget.verified.txt @@ -5,7 +5,7 @@ Title: An enum member could not be found on the target enum, Severity: Info, WarningLevel: 1, - Location: : (8,0)-(12,1), + Location: : (7,0)-(11,1), Description: , HelpLink: , MessageFormat: Enum member {0} ({1}) on {2} not found on target enum {3}, @@ -17,7 +17,7 @@ Title: An enum member could not be found on the target enum, Severity: Info, WarningLevel: 1, - Location: : (8,0)-(12,1), + Location: : (7,0)-(11,1), Description: , HelpLink: , MessageFormat: Enum member {0} ({1}) on {2} not found on target enum {3}, diff --git a/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByStrategyMissingValues_testCase=ByValueMissingSource.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByStrategyMissingValues_testCase=ByValueMissingSource.verified.txt index e0432e6d01..14dc2efb02 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByStrategyMissingValues_testCase=ByValueMissingSource.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByStrategyMissingValues_testCase=ByValueMissingSource.verified.txt @@ -5,7 +5,7 @@ Title: An enum member could not be found on the source enum, Severity: Info, WarningLevel: 1, - Location: : (8,0)-(12,1), + Location: : (7,0)-(11,1), Description: , HelpLink: , MessageFormat: Enum member {0} ({1}) on {2} not found on source enum {3}, diff --git a/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByStrategyMissingValues_testCase=ByValueMissingTarget.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByStrategyMissingValues_testCase=ByValueMissingTarget.verified.txt index 9d3c766d7d..02b64056b5 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByStrategyMissingValues_testCase=ByValueMissingTarget.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToAnotherEnumByStrategyMissingValues_testCase=ByValueMissingTarget.verified.txt @@ -5,7 +5,7 @@ Title: An enum member could not be found on the target enum, Severity: Info, WarningLevel: 1, - Location: : (8,0)-(12,1), + Location: : (7,0)-(11,1), Description: , HelpLink: , MessageFormat: Enum member {0} ({1}) on {2} not found on target enum {3}, diff --git a/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToOtherEnumByNameWithoutOverlap.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToOtherEnumByNameWithoutOverlap.verified.txt index ef5d8439d6..09936e2d66 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToOtherEnumByNameWithoutOverlap.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/EnumTest.EnumToOtherEnumByNameWithoutOverlap.verified.txt @@ -5,7 +5,7 @@ Title: An enum member could not be found on the target enum, Severity: Info, WarningLevel: 1, - Location: : (11,4)-(11,69), + Location: : (10,4)-(10,69), Description: , HelpLink: , MessageFormat: Enum member {0} ({1}) on {2} not found on target enum {3}, @@ -17,7 +17,7 @@ Title: An enum member could not be found on the target enum, Severity: Info, WarningLevel: 1, - Location: : (11,4)-(11,69), + Location: : (10,4)-(10,69), Description: , HelpLink: , MessageFormat: Enum member {0} ({1}) on {2} not found on target enum {3}, @@ -29,7 +29,7 @@ Title: An enum member could not be found on the target enum, Severity: Info, WarningLevel: 1, - Location: : (11,4)-(11,69), + Location: : (10,4)-(10,69), Description: , HelpLink: , MessageFormat: Enum member {0} ({1}) on {2} not found on target enum {3}, @@ -41,7 +41,7 @@ Title: An enum member could not be found on the source enum, Severity: Info, WarningLevel: 1, - Location: : (11,4)-(11,69), + Location: : (10,4)-(10,69), Description: , HelpLink: , MessageFormat: Enum member {0} ({1}) on {2} not found on source enum {3}, @@ -53,7 +53,7 @@ Title: An enum member could not be found on the source enum, Severity: Info, WarningLevel: 1, - Location: : (11,4)-(11,69), + Location: : (10,4)-(10,69), Description: , HelpLink: , MessageFormat: Enum member {0} ({1}) on {2} not found on source enum {3}, @@ -65,7 +65,7 @@ Title: An enum member could not be found on the source enum, Severity: Info, WarningLevel: 1, - Location: : (11,4)-(11,69), + Location: : (10,4)-(10,69), Description: , HelpLink: , MessageFormat: Enum member {0} ({1}) on {2} not found on source enum {3}, @@ -77,7 +77,7 @@ Title: No overlapping enum members found, Severity: Warning, WarningLevel: 1, - Location: : (11,4)-(11,69), + Location: : (10,4)-(10,69), Description: , HelpLink: , MessageFormat: {0} and {1} don't have overlapping enum member names, mapping will therefore always result in an exception, diff --git a/test/Riok.Mapperly.Tests/_snapshots/NullableTest.NullableToNonNullableWithNoThrowNoAccessibleCtorShouldDiagnostic.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/NullableTest.NullableToNonNullableWithNoThrowNoAccessibleCtorShouldDiagnostic.verified.txt index 5094dda55c..60ab859dc8 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/NullableTest.NullableToNonNullableWithNoThrowNoAccessibleCtorShouldDiagnostic.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/NullableTest.NullableToNonNullableWithNoThrowNoAccessibleCtorShouldDiagnostic.verified.txt @@ -5,7 +5,7 @@ Title: No accessible parameterless constructor found, Severity: Error, WarningLevel: 0, - Location: : (11,4)-(11,34), + Location: : (10,4)-(10,34), Description: , HelpLink: , MessageFormat: {0} has no accessible parameterless constructor, diff --git a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyConstructorResolverTest.ClassToClassPrivateCtorShouldDiagnostic.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyConstructorResolverTest.ClassToClassPrivateCtorShouldDiagnostic.verified.txt index ffb2bcd45e..f4db388c9b 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyConstructorResolverTest.ClassToClassPrivateCtorShouldDiagnostic.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyConstructorResolverTest.ClassToClassPrivateCtorShouldDiagnostic.verified.txt @@ -5,7 +5,7 @@ Title: Could not create mapping, Severity: Error, WarningLevel: 0, - Location: : (11,4)-(11,28), + Location: : (10,4)-(10,28), Description: , HelpLink: , MessageFormat: Could not create mapping from {0} to {1}. Consider implementing the mapping manually., diff --git a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyConstructorResolverTest.ClassToClassUnmatchedAttributedCtorShouldDiagnosticAndUseAlternative.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyConstructorResolverTest.ClassToClassUnmatchedAttributedCtorShouldDiagnosticAndUseAlternative.verified.txt index a998b279b7..6f8d7cd85a 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyConstructorResolverTest.ClassToClassUnmatchedAttributedCtorShouldDiagnosticAndUseAlternative.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyConstructorResolverTest.ClassToClassUnmatchedAttributedCtorShouldDiagnosticAndUseAlternative.verified.txt @@ -5,7 +5,7 @@ Title: Cannot map to the configured constructor to be used by Mapperly, Severity: Warning, WarningLevel: 1, - Location: : (11,4)-(11,28), + Location: : (10,4)-(10,28), Description: , HelpLink: , MessageFormat: Cannot map from {0} to the configured constructor {1}, diff --git a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyConstructorResolverTest.ClassToClassUnmatchedCtorShouldDiagnostic.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyConstructorResolverTest.ClassToClassUnmatchedCtorShouldDiagnostic.verified.txt index 1ff0185aa0..d4602c2ad3 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyConstructorResolverTest.ClassToClassUnmatchedCtorShouldDiagnostic.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyConstructorResolverTest.ClassToClassUnmatchedCtorShouldDiagnostic.verified.txt @@ -5,7 +5,7 @@ Title: No accessible constructor with mappable arguments found, Severity: Error, WarningLevel: 0, - Location: : (11,4)-(11,28), + Location: : (10,4)-(10,28), Description: , HelpLink: , MessageFormat: {0} has no accessible constructor with mappable arguments, @@ -17,7 +17,7 @@ Title: Source member is not mapped to any target member, Severity: Info, WarningLevel: 1, - Location: : (11,4)-(11,28), + Location: : (10,4)-(10,28), Description: , HelpLink: , MessageFormat: The member {0} on the mapping source type {1} is not mapped to any member on the mapping target type {2}, diff --git a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyConstructorResolverTest.ClassToClassWithOneMatchingCtorAndUnmatchedSourcePropertyShouldDiagnostic.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyConstructorResolverTest.ClassToClassWithOneMatchingCtorAndUnmatchedSourcePropertyShouldDiagnostic.verified.txt index 718f9cca39..4fd42c150f 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyConstructorResolverTest.ClassToClassWithOneMatchingCtorAndUnmatchedSourcePropertyShouldDiagnostic.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyConstructorResolverTest.ClassToClassWithOneMatchingCtorAndUnmatchedSourcePropertyShouldDiagnostic.verified.txt @@ -5,7 +5,7 @@ Title: Source member is not mapped to any target member, Severity: Info, WarningLevel: 1, - Location: : (11,4)-(11,28), + Location: : (10,4)-(10,28), Description: , HelpLink: , MessageFormat: The member {0} on the mapping source type {1} is not mapped to any member on the mapping target type {2}, diff --git a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyFlatteningTest.ManualUnflattenedPropertyNullablePathNoParameterlessCtorShouldDiagnostic.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyFlatteningTest.ManualUnflattenedPropertyNullablePathNoParameterlessCtorShouldDiagnostic.verified.txt index a5bfd25688..07284ded82 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyFlatteningTest.ManualUnflattenedPropertyNullablePathNoParameterlessCtorShouldDiagnostic.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyFlatteningTest.ManualUnflattenedPropertyNullablePathNoParameterlessCtorShouldDiagnostic.verified.txt @@ -5,7 +5,7 @@ Title: No accessible parameterless constructor found, Severity: Error, WarningLevel: 0, - Location: : (11,4)-(11,68), + Location: : (10,4)-(10,68), Description: , HelpLink: , MessageFormat: {0} has no accessible parameterless constructor, diff --git a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyFlatteningTest.ManualUnflattenedPropertySourcePropertyNotFoundShouldDiagnostic.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyFlatteningTest.ManualUnflattenedPropertySourcePropertyNotFoundShouldDiagnostic.verified.txt index ccca2f272a..aa95d0ce43 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyFlatteningTest.ManualUnflattenedPropertySourcePropertyNotFoundShouldDiagnostic.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyFlatteningTest.ManualUnflattenedPropertySourcePropertyNotFoundShouldDiagnostic.verified.txt @@ -5,7 +5,7 @@ Title: Mapping source member not found, Severity: Error, WarningLevel: 0, - Location: : (11,4)-(11,71), + Location: : (10,4)-(10,71), Description: , HelpLink: , MessageFormat: Specified member {0} on source type {1} was not found, @@ -17,7 +17,7 @@ Title: Source member is not mapped to any target member, Severity: Info, WarningLevel: 1, - Location: : (11,4)-(11,71), + Location: : (10,4)-(10,71), Description: , HelpLink: , MessageFormat: The member {0} on the mapping source type {1} is not mapped to any member on the mapping target type {2}, diff --git a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyFlatteningTest.ManualUnflattenedPropertyTargetPropertyNotFoundShouldDiagnostic.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyFlatteningTest.ManualUnflattenedPropertyTargetPropertyNotFoundShouldDiagnostic.verified.txt index c83c5e4dec..a70823b098 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyFlatteningTest.ManualUnflattenedPropertyTargetPropertyNotFoundShouldDiagnostic.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyFlatteningTest.ManualUnflattenedPropertyTargetPropertyNotFoundShouldDiagnostic.verified.txt @@ -5,7 +5,7 @@ Title: Mapping target member not found, Severity: Error, WarningLevel: 0, - Location: : (11,4)-(11,71), + Location: : (10,4)-(10,71), Description: , HelpLink: , MessageFormat: Specified member {0} on mapping target type {1} was not found, @@ -17,7 +17,7 @@ Title: Source member is not mapped to any target member, Severity: Info, WarningLevel: 1, - Location: : (11,4)-(11,71), + Location: : (10,4)-(10,71), Description: , HelpLink: , MessageFormat: The member {0} on the mapping source type {1} is not mapped to any member on the mapping target type {2}, diff --git a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyFlatteningTest.ManualUnflattenedPropertyTargetPropertyPathWriteOnlyShouldDiagnostic.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyFlatteningTest.ManualUnflattenedPropertyTargetPropertyPathWriteOnlyShouldDiagnostic.verified.txt index 33a3b20ea4..7541104b86 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyFlatteningTest.ManualUnflattenedPropertyTargetPropertyPathWriteOnlyShouldDiagnostic.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyFlatteningTest.ManualUnflattenedPropertyTargetPropertyPathWriteOnlyShouldDiagnostic.verified.txt @@ -5,7 +5,7 @@ Title: Cannot map to write only member path, Severity: Info, WarningLevel: 1, - Location: : (11,4)-(11,68), + Location: : (10,4)-(10,68), Description: , HelpLink: , MessageFormat: Cannot map from member {0}.{1} of type {2} to write only member path {3}.{4} of type {5}, @@ -17,7 +17,7 @@ Title: Source member is not mapped to any target member, Severity: Info, WarningLevel: 1, - Location: : (11,4)-(11,68), + Location: : (10,4)-(10,68), Description: , HelpLink: , MessageFormat: The member {0} on the mapping source type {1} is not mapped to any member on the mapping target type {2}, diff --git a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyInitPropertyTest.InitOnlyPropertyWithConfigurationNotFoundSourcePropertyShouldDiagnostic.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyInitPropertyTest.InitOnlyPropertyWithConfigurationNotFoundSourcePropertyShouldDiagnostic.verified.txt index eff12b5fb5..e42b06b0a5 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyInitPropertyTest.InitOnlyPropertyWithConfigurationNotFoundSourcePropertyShouldDiagnostic.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyInitPropertyTest.InitOnlyPropertyWithConfigurationNotFoundSourcePropertyShouldDiagnostic.verified.txt @@ -5,7 +5,7 @@ Title: Source member was not found for target member, Severity: Info, WarningLevel: 1, - Location: : (11,4)-(11,74), + Location: : (10,4)-(10,74), Description: , HelpLink: , MessageFormat: The member {0} on the mapping target type {1} was not found on the mapping source type {2}, @@ -17,7 +17,7 @@ Title: Source member is not mapped to any target member, Severity: Info, WarningLevel: 1, - Location: : (11,4)-(11,74), + Location: : (10,4)-(10,74), Description: , HelpLink: , MessageFormat: The member {0} on the mapping source type {1} is not mapped to any member on the mapping target type {2}, diff --git a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyInitPropertyTest.InitOnlyPropertyWithMultipleConfigurationsShouldDiagnostic.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyInitPropertyTest.InitOnlyPropertyWithMultipleConfigurationsShouldDiagnostic.verified.txt index 1e27f235ee..5a40b89651 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyInitPropertyTest.InitOnlyPropertyWithMultipleConfigurationsShouldDiagnostic.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyInitPropertyTest.InitOnlyPropertyWithMultipleConfigurationsShouldDiagnostic.verified.txt @@ -5,7 +5,7 @@ Title: An init only member can have one configuration at max, Severity: Warning, WarningLevel: 1, - Location: : (11,4)-(11,120), + Location: : (10,4)-(10,120), Description: , HelpLink: , MessageFormat: The init only member {0}.{1} can have one configuration at max, @@ -17,7 +17,7 @@ Title: Source member is not mapped to any target member, Severity: Info, WarningLevel: 1, - Location: : (11,4)-(11,120), + Location: : (10,4)-(10,120), Description: , HelpLink: , MessageFormat: The member {0} on the mapping source type {1} is not mapped to any member on the mapping target type {2}, diff --git a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyInitPropertyTest.InitOnlyPropertyWithPathConfigurationsShouldDiagnostic.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyInitPropertyTest.InitOnlyPropertyWithPathConfigurationsShouldDiagnostic.verified.txt index 570d3f4daa..8a970efdbd 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyInitPropertyTest.InitOnlyPropertyWithPathConfigurationsShouldDiagnostic.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyInitPropertyTest.InitOnlyPropertyWithPathConfigurationsShouldDiagnostic.verified.txt @@ -5,7 +5,7 @@ Title: Init only member cannot handle target paths, Severity: Error, WarningLevel: 0, - Location: : (11,4)-(11,74), + Location: : (10,4)-(10,74), Description: , HelpLink: , MessageFormat: Cannot map to init only member path {0}.{1}, @@ -17,7 +17,7 @@ Title: Source member is not mapped to any target member, Severity: Info, WarningLevel: 1, - Location: : (11,4)-(11,74), + Location: : (10,4)-(10,74), Description: , HelpLink: , MessageFormat: The member {0} on the mapping source type {1} is not mapped to any member on the mapping target type {2}, diff --git a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyInitPropertyTest.RequiredPropertySourceNotFoundShouldDiagnostic.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyInitPropertyTest.RequiredPropertySourceNotFoundShouldDiagnostic.verified.txt index 355cfd80fe..f80d04971d 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyInitPropertyTest.RequiredPropertySourceNotFoundShouldDiagnostic.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyInitPropertyTest.RequiredPropertySourceNotFoundShouldDiagnostic.verified.txt @@ -5,7 +5,7 @@ Title: Source member was not found for required target member, Severity: Error, WarningLevel: 0, - Location: : (11,4)-(11,28), + Location: : (10,4)-(10,28), Description: , HelpLink: , MessageFormat: Required member {0} on mapping target type {1} was not found on the mapping source type {2}, @@ -17,7 +17,7 @@ Title: Source member is not mapped to any target member, Severity: Info, WarningLevel: 1, - Location: : (11,4)-(11,28), + Location: : (10,4)-(10,28), Description: , HelpLink: , MessageFormat: The member {0} on the mapping source type {1} is not mapped to any member on the mapping target type {2}, diff --git a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyNullableTest.NullableIntWithAdditionalFlattenedValueToNonNullableIntProperties.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyNullableTest.NullableIntWithAdditionalFlattenedValueToNonNullableIntProperties.verified.txt index 5de359f830..a64b5146e0 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyNullableTest.NullableIntWithAdditionalFlattenedValueToNonNullableIntProperties.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyNullableTest.NullableIntWithAdditionalFlattenedValueToNonNullableIntProperties.verified.txt @@ -5,7 +5,7 @@ Title: Source member is not mapped to any target member, Severity: Info, WarningLevel: 1, - Location: : (8,0)-(12,1), + Location: : (7,0)-(11,1), Description: , HelpLink: , MessageFormat: The member {0} on the mapping source type {1} is not mapped to any member on the mapping target type {2}, diff --git a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.ShouldIgnoreReadOnlyPropertyOnTargetWithDiagnostic.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.ShouldIgnoreReadOnlyPropertyOnTargetWithDiagnostic.verified.txt index 312a5456c8..a92b948bab 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.ShouldIgnoreReadOnlyPropertyOnTargetWithDiagnostic.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.ShouldIgnoreReadOnlyPropertyOnTargetWithDiagnostic.verified.txt @@ -5,7 +5,7 @@ Title: Cannot map to read only member, Severity: Info, WarningLevel: 1, - Location: : (11,4)-(11,28), + Location: : (10,4)-(10,28), Description: , HelpLink: , MessageFormat: Cannot map member {0}.{1} of type {2} to read only member {3}.{4} of type {5}, @@ -17,7 +17,7 @@ Title: Source member is not mapped to any target member, Severity: Info, WarningLevel: 1, - Location: : (11,4)-(11,28), + Location: : (10,4)-(10,28), Description: , HelpLink: , MessageFormat: The member {0} on the mapping source type {1} is not mapped to any member on the mapping target type {2}, diff --git a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.ShouldIgnoreWriteOnlyPropertyOnSourceWithDiagnostics.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.ShouldIgnoreWriteOnlyPropertyOnSourceWithDiagnostics.verified.txt index 8f094329c8..0cbdd1c489 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.ShouldIgnoreWriteOnlyPropertyOnSourceWithDiagnostics.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.ShouldIgnoreWriteOnlyPropertyOnSourceWithDiagnostics.verified.txt @@ -5,7 +5,7 @@ Title: Cannot map from write only member, Severity: Info, WarningLevel: 1, - Location: : (11,4)-(11,28), + Location: : (10,4)-(10,28), Description: , HelpLink: , MessageFormat: Cannot map from write only member {0}.{1} of type {2} to member {3}.{4} of type {5}, @@ -17,7 +17,7 @@ Title: Source member is not mapped to any target member, Severity: Info, WarningLevel: 1, - Location: : (11,4)-(11,28), + Location: : (10,4)-(10,28), Description: , HelpLink: , MessageFormat: The member {0} on the mapping source type {1} is not mapped to any member on the mapping target type {2}, diff --git a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.WithManualMappedNotFoundSourcePropertyShouldDiagnostic.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.WithManualMappedNotFoundSourcePropertyShouldDiagnostic.verified.txt index 7b4879877a..b5a70d54c2 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.WithManualMappedNotFoundSourcePropertyShouldDiagnostic.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.WithManualMappedNotFoundSourcePropertyShouldDiagnostic.verified.txt @@ -5,7 +5,7 @@ Title: Mapping source member not found, Severity: Error, WarningLevel: 0, - Location: : (11,4)-(11,81), + Location: : (10,4)-(10,81), Description: , HelpLink: , MessageFormat: Specified member {0} on source type {1} was not found, @@ -17,7 +17,7 @@ Title: Source member is not mapped to any target member, Severity: Info, WarningLevel: 1, - Location: : (11,4)-(11,81), + Location: : (10,4)-(10,81), Description: , HelpLink: , MessageFormat: The member {0} on the mapping source type {1} is not mapped to any member on the mapping target type {2}, diff --git a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.WithManualMappedNotFoundTargetPropertyShouldDiagnostic.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.WithManualMappedNotFoundTargetPropertyShouldDiagnostic.verified.txt index d81eb8ff69..88e98bbe24 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.WithManualMappedNotFoundTargetPropertyShouldDiagnostic.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.WithManualMappedNotFoundTargetPropertyShouldDiagnostic.verified.txt @@ -5,7 +5,7 @@ Title: Source member was not found for target member, Severity: Info, WarningLevel: 1, - Location: : (11,4)-(11,88), + Location: : (10,4)-(10,88), Description: , HelpLink: , MessageFormat: The member {0} on the mapping target type {1} was not found on the mapping source type {2}, @@ -17,7 +17,7 @@ Title: Mapping target member not found, Severity: Error, WarningLevel: 0, - Location: : (11,4)-(11,88), + Location: : (10,4)-(10,88), Description: , HelpLink: , MessageFormat: Specified member {0} on mapping target type {1} was not found, @@ -29,7 +29,7 @@ Title: Source member is not mapped to any target member, Severity: Info, WarningLevel: 1, - Location: : (11,4)-(11,88), + Location: : (10,4)-(10,88), Description: , HelpLink: , MessageFormat: The member {0} on the mapping source type {1} is not mapped to any member on the mapping target type {2}, diff --git a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.WithManualNotFoundSourcePropertyShouldDiagnostic.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.WithManualNotFoundSourcePropertyShouldDiagnostic.verified.txt index eee30d6d6a..09dd186625 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.WithManualNotFoundSourcePropertyShouldDiagnostic.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.WithManualNotFoundSourcePropertyShouldDiagnostic.verified.txt @@ -5,7 +5,7 @@ Title: Mapping source member not found, Severity: Error, WarningLevel: 0, - Location: : (11,4)-(11,79), + Location: : (10,4)-(10,79), Description: , HelpLink: , MessageFormat: Specified member {0} on source type {1} was not found, @@ -17,7 +17,7 @@ Title: Source member is not mapped to any target member, Severity: Info, WarningLevel: 1, - Location: : (11,4)-(11,79), + Location: : (10,4)-(10,79), Description: , HelpLink: , MessageFormat: The member {0} on the mapping source type {1} is not mapped to any member on the mapping target type {2}, diff --git a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.WithPrivateSourceGetterShouldIgnoreAndDiagnostic.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.WithPrivateSourceGetterShouldIgnoreAndDiagnostic.verified.txt index 3c26378bdb..47218e5904 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.WithPrivateSourceGetterShouldIgnoreAndDiagnostic.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.WithPrivateSourceGetterShouldIgnoreAndDiagnostic.verified.txt @@ -5,7 +5,7 @@ Title: Cannot map from write only member, Severity: Info, WarningLevel: 1, - Location: : (11,4)-(11,28), + Location: : (10,4)-(10,28), Description: , HelpLink: , MessageFormat: Cannot map from write only member {0}.{1} of type {2} to member {3}.{4} of type {5}, @@ -17,7 +17,7 @@ Title: Source member is not mapped to any target member, Severity: Info, WarningLevel: 1, - Location: : (11,4)-(11,28), + Location: : (10,4)-(10,28), Description: , HelpLink: , MessageFormat: The member {0} on the mapping source type {1} is not mapped to any member on the mapping target type {2}, diff --git a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.WithPrivateSourcePathGetterShouldIgnoreAndDiagnostic.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.WithPrivateSourcePathGetterShouldIgnoreAndDiagnostic.verified.txt index d0a4a91a3c..be9a8b3ab0 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.WithPrivateSourcePathGetterShouldIgnoreAndDiagnostic.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.WithPrivateSourcePathGetterShouldIgnoreAndDiagnostic.verified.txt @@ -5,7 +5,7 @@ Title: Cannot map from write only member, Severity: Info, WarningLevel: 1, - Location: : (11,4)-(11,28), + Location: : (10,4)-(10,28), Description: , HelpLink: , MessageFormat: Cannot map from write only member {0}.{1} of type {2} to member {3}.{4} of type {5}, @@ -17,7 +17,7 @@ Title: Source member is not mapped to any target member, Severity: Info, WarningLevel: 1, - Location: : (11,4)-(11,28), + Location: : (10,4)-(10,28), Description: , HelpLink: , MessageFormat: The member {0} on the mapping source type {1} is not mapped to any member on the mapping target type {2}, diff --git a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.WithPrivateTargetPathGetterShouldIgnoreAndDiagnostic.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.WithPrivateTargetPathGetterShouldIgnoreAndDiagnostic.verified.txt index 70e63abc1f..cd0b149a2f 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.WithPrivateTargetPathGetterShouldIgnoreAndDiagnostic.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.WithPrivateTargetPathGetterShouldIgnoreAndDiagnostic.verified.txt @@ -5,7 +5,7 @@ Title: Cannot map to read only member, Severity: Info, WarningLevel: 1, - Location: : (11,4)-(11,28), + Location: : (10,4)-(10,28), Description: , HelpLink: , MessageFormat: Cannot map member {0}.{1} of type {2} to read only member {3}.{4} of type {5}, @@ -17,7 +17,7 @@ Title: Source member is not mapped to any target member, Severity: Info, WarningLevel: 1, - Location: : (11,4)-(11,28), + Location: : (10,4)-(10,28), Description: , HelpLink: , MessageFormat: The member {0} on the mapping source type {1} is not mapped to any member on the mapping target type {2}, diff --git a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.WithPrivateTargetSetterShouldIgnoreAndDiagnostic.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.WithPrivateTargetSetterShouldIgnoreAndDiagnostic.verified.txt index 79468fd801..8249ed5291 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.WithPrivateTargetSetterShouldIgnoreAndDiagnostic.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.WithPrivateTargetSetterShouldIgnoreAndDiagnostic.verified.txt @@ -5,7 +5,7 @@ Title: Cannot map to read only member, Severity: Info, WarningLevel: 1, - Location: : (11,4)-(11,28), + Location: : (10,4)-(10,28), Description: , HelpLink: , MessageFormat: Cannot map member {0}.{1} of type {2} to read only member {3}.{4} of type {5}, @@ -17,7 +17,7 @@ Title: Source member is not mapped to any target member, Severity: Info, WarningLevel: 1, - Location: : (11,4)-(11,28), + Location: : (10,4)-(10,28), Description: , HelpLink: , MessageFormat: The member {0} on the mapping source type {1} is not mapped to any member on the mapping target type {2}, diff --git a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.WithPropertyNameMappingStrategyCaseSensitive.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.WithPropertyNameMappingStrategyCaseSensitive.verified.txt index 8677bad47b..9651a18a59 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.WithPropertyNameMappingStrategyCaseSensitive.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.WithPropertyNameMappingStrategyCaseSensitive.verified.txt @@ -5,7 +5,7 @@ Title: Source member was not found for target member, Severity: Info, WarningLevel: 1, - Location: : (11,4)-(11,28), + Location: : (10,4)-(10,28), Description: , HelpLink: , MessageFormat: The member {0} on the mapping target type {1} was not found on the mapping source type {2}, @@ -17,7 +17,7 @@ Title: Source member is not mapped to any target member, Severity: Info, WarningLevel: 1, - Location: : (11,4)-(11,28), + Location: : (10,4)-(10,28), Description: , HelpLink: , MessageFormat: The member {0} on the mapping source type {1} is not mapped to any member on the mapping target type {2}, diff --git a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.WithUnmappablePropertyShouldDiagnostic.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.WithUnmappablePropertyShouldDiagnostic.verified.txt index 57602959dc..221c6f1a73 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.WithUnmappablePropertyShouldDiagnostic.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.WithUnmappablePropertyShouldDiagnostic.verified.txt @@ -5,7 +5,7 @@ Title: Could not map member, Severity: Error, WarningLevel: 0, - Location: : (11,4)-(11,28), + Location: : (10,4)-(10,28), Description: , HelpLink: , MessageFormat: Could not map member {0}.{1} of type {2} to {3}.{4} of type {5}, @@ -17,7 +17,7 @@ Title: Source member is not mapped to any target member, Severity: Info, WarningLevel: 1, - Location: : (11,4)-(11,28), + Location: : (10,4)-(10,28), Description: , HelpLink: , MessageFormat: The member {0} on the mapping source type {1} is not mapped to any member on the mapping target type {2}, diff --git a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.WithUnmatchedPropertyShouldDiagnostic.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.WithUnmatchedPropertyShouldDiagnostic.verified.txt index 9e765977de..440adde98d 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.WithUnmatchedPropertyShouldDiagnostic.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/ObjectPropertyTest.WithUnmatchedPropertyShouldDiagnostic.verified.txt @@ -5,7 +5,7 @@ Title: Source member was not found for target member, Severity: Info, WarningLevel: 1, - Location: : (11,4)-(11,28), + Location: : (10,4)-(10,28), Description: , HelpLink: , MessageFormat: The member {0} on the mapping target type {1} was not found on the mapping source type {2}, @@ -17,7 +17,7 @@ Title: Source member is not mapped to any target member, Severity: Info, WarningLevel: 1, - Location: : (11,4)-(11,28), + Location: : (10,4)-(10,28), Description: , HelpLink: , MessageFormat: The member {0} on the mapping source type {1} is not mapped to any member on the mapping target type {2}, diff --git a/test/Riok.Mapperly.Tests/_snapshots/QueryableProjectionTest.ReferenceLoopCtor.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/QueryableProjectionTest.ReferenceLoopCtor.verified.txt index 8d3a64e0f6..e0f1b8009b 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/QueryableProjectionTest.ReferenceLoopCtor.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/QueryableProjectionTest.ReferenceLoopCtor.verified.txt @@ -5,7 +5,7 @@ Title: Reference loop detected while mapping to a constructor parameter, Severity: Warning, WarningLevel: 1, - Location: : (8,0)-(12,1), + Location: : (7,0)-(11,1), Description: , HelpLink: , MessageFormat: Reference loop detected while mapping from {0}.{1} to the constructor parameter {3} of {2}, consider ignoring this member or mark another constructor as mapping constructor, @@ -17,7 +17,7 @@ Title: No accessible constructor with mappable arguments found, Severity: Error, WarningLevel: 0, - Location: : (8,0)-(12,1), + Location: : (7,0)-(11,1), Description: , HelpLink: , MessageFormat: {0} has no accessible constructor with mappable arguments, @@ -29,7 +29,7 @@ Title: Source member is not mapped to any target member, Severity: Info, WarningLevel: 1, - Location: : (8,0)-(12,1), + Location: : (7,0)-(11,1), Description: , HelpLink: , MessageFormat: The member {0} on the mapping source type {1} is not mapped to any member on the mapping target type {2}, diff --git a/test/Riok.Mapperly.Tests/_snapshots/QueryableProjectionTest.ReferenceLoopInitProperty.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/QueryableProjectionTest.ReferenceLoopInitProperty.verified.txt index a26321d7f6..b8d1b46e77 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/QueryableProjectionTest.ReferenceLoopInitProperty.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/QueryableProjectionTest.ReferenceLoopInitProperty.verified.txt @@ -5,7 +5,7 @@ Title: Reference loop detected while mapping to an init only member, Severity: Error, WarningLevel: 0, - Location: : (8,0)-(12,1), + Location: : (7,0)-(11,1), Description: , HelpLink: , MessageFormat: Reference loop detected while mapping from {0}.{1} to the init only member {2}.{3}, consider ignoring this member, @@ -17,7 +17,7 @@ Title: Source member is not mapped to any target member, Severity: Info, WarningLevel: 1, - Location: : (8,0)-(12,1), + Location: : (7,0)-(11,1), Description: , HelpLink: , MessageFormat: The member {0} on the mapping source type {1} is not mapped to any member on the mapping target type {2}, diff --git a/test/Riok.Mapperly.Tests/_snapshots/ReferenceHandlingTest.ManuallyMappedPropertiesShouldWork.verified.txt b/test/Riok.Mapperly.Tests/_snapshots/ReferenceHandlingTest.ManuallyMappedPropertiesShouldWork.verified.txt index e7f3567d3e..8ade6f7c12 100644 --- a/test/Riok.Mapperly.Tests/_snapshots/ReferenceHandlingTest.ManuallyMappedPropertiesShouldWork.verified.txt +++ b/test/Riok.Mapperly.Tests/_snapshots/ReferenceHandlingTest.ManuallyMappedPropertiesShouldWork.verified.txt @@ -5,7 +5,7 @@ Title: Source member was not found for target member, Severity: Info, WarningLevel: 1, - Location: : (11,4)-(11,65), + Location: : (10,4)-(10,65), Description: , HelpLink: , MessageFormat: The member {0} on the mapping target type {1} was not found on the mapping source type {2}, @@ -17,7 +17,7 @@ Title: Source member was not found for target member, Severity: Info, WarningLevel: 1, - Location: : (11,65)-(11,128), + Location: : (10,65)-(10,128), Description: , HelpLink: , MessageFormat: The member {0} on the mapping target type {1} was not found on the mapping source type {2},