Skip to content

Commit

Permalink
Added additional test around instance.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-E-angelo committed Jul 6, 2020
1 parent 3a2fc2a commit 09df1f3
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/ExtendedXmlSerializer.Tests.ReportedIssues/Issue411Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,19 @@ public void Verify()
serializer.Cycle(new Subject {Message = "Hello World!"}).Message.Should().BeNull();
}


[Fact]
public void VerifyInstance()
{
var serializer = new ConfigurationContainer().Type<SubjectBase>()
.Member(x => x.Message)
.EmitWhenInstance(x => false)
.Create()
.ForTesting();

serializer.Cycle(new Subject {Message = "Hello World!"}).Message.Should().BeNull();
}

sealed class Subject : SubjectBase
{
public override string Message { get; set; }
Expand Down

0 comments on commit 09df1f3

Please sign in to comment.