diff --git a/src/Destructurama.Attributed.Tests/AttributedDestructuringTests.cs b/src/Destructurama.Attributed.Tests/AttributedDestructuringTests.cs index 5523752..64f5624 100644 --- a/src/Destructurama.Attributed.Tests/AttributedDestructuringTests.cs +++ b/src/Destructurama.Attributed.Tests/AttributedDestructuringTests.cs @@ -84,6 +84,7 @@ public void AttributesAreConsultedWhenDestructuring() props["Struct1"].LiteralValue().ShouldBeOfType(); props["Struct2"].LiteralValue().ShouldBeOfType(); props["StructReturningNull"].LiteralValue().ShouldBeNull(); + props["StructNull"].LiteralValue().ShouldBeNull(); var str = sv.ToString(); str.Contains("This is a username").ShouldBeTrue(); @@ -156,6 +157,9 @@ public class Customized [LogAsScalar(isMutable: true)] public StructReturningNull StructReturningNull { get; set; } + + [LogAsScalar(isMutable: true)] + public StructReturningNull? StructNull { get; set; } } public class UserAuthData