Skip to content

Commit

Permalink
More tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanLarsson committed Sep 10, 2018
1 parent 93f7c07 commit 36f9562
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Gu.Xml.Tests/XmlTests.SerializeWithXmlAttributes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public class SerializeWithXmlAttributes
new TestCaseData(new PropertyWithXmlElementAttributeExplicitName { Value = 1 }),
new TestCaseData(new PropertyWithXmlAttributeAttribute { Value = 1 }),
new TestCaseData(new PropertyWithXmlAttributeAttributeExplicitName { Value = 1 }),
new TestCaseData(new ExplicitInterfaceWithXmlElementAttribute()),
new TestCaseData(new FieldWithXmlElementAttribute { Value = 1 }),
new TestCaseData(new FieldWithXmlElementAttributeExplicitName { Value = 1 }),
new TestCaseData(new FieldWithXmlAttributeAttribute { Value = 1 }),
Expand Down Expand Up @@ -89,6 +90,18 @@ public class FieldWithXmlElementAttributeExplicitName
public int Value = 1;
}

public interface IValue
{
// ReSharper disable once UnusedMember.Global
int Value { get; set; }
}

public class ExplicitInterfaceWithXmlElementAttribute : IValue
{
[XmlElement]
int IValue.Value { get; set; }
}

public class PropertyWithXmlAttributeAttribute
{
[XmlAttribute]
Expand Down

0 comments on commit 36f9562

Please sign in to comment.