-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix bug when mapWith arguments does not save nullability for referenc…
…e types
- Loading branch information
Showing
5 changed files
with
85 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...tyType/MapResult/NullableReferenceTypesInArgumentWithMapMethodCall_ShouldMap.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
PropertyThatNeedMap: { | ||
Property: good | ||
}, | ||
Property: good | ||
} |
19 changes: 19 additions & 0 deletions
19
...esInArgumentWithMapMethodCall_ShouldMap.00Mapper_ConfiguredMaps_MockMethods.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
//HintName: Mapper_ConfiguredMaps_MockMethods.g.cs | ||
#nullable enable | ||
using NextGenMapper.Extensions; | ||
|
||
namespace NextGenMapper | ||
{ | ||
internal static partial class Mapper | ||
{ | ||
internal static Test.Destination MapWith<To> | ||
( | ||
this Test.Source source, | ||
Test.B? PropertyThatNeedMap = default!, | ||
string Property = default! | ||
) | ||
{ | ||
throw new System.NotImplementedException("This method is a mock and is not intended to be called"); | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...ReferenceTypesInArgumentWithMapMethodCall_ShouldMap.01Mapper_ConfiguredMaps.g.verified.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
//HintName: Mapper_ConfiguredMaps.g.cs | ||
#nullable enable | ||
using NextGenMapper.Extensions; | ||
|
||
namespace NextGenMapper | ||
{ | ||
internal static partial class Mapper | ||
{ | ||
internal static Test.Destination MapWith<To> | ||
( | ||
this Test.Source source, | ||
Test.B? PropertyThatNeedMap | ||
) | ||
=> new Test.Destination | ||
{ | ||
PropertyThatNeedMap = PropertyThatNeedMap, | ||
Property = source.Property | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters