Skip to content

Commit

Permalink
Add test for #217
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Ganss committed Jul 28, 2020
1 parent 1a94497 commit c9d50ea
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,9 @@
<None Update="xsd\nullable\optional.xsd">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="xsd\simple\restriction.xsd">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="xsd\simple\simple.xsd">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
Expand Down
2 changes: 1 addition & 1 deletion XmlSchemaClassGenerator.Tests/XmlTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ private IEnumerable<string> ConvertXml(string name, string xsd, Generator genera
const string IS24ImmoTransferPattern = @"xsd\is24immotransfer\is24immotransfer.xsd";
const string WadlPattern = @"xsd\wadl\*.xsd";
const string ListPattern = @"xsd\list\list.xsd";
const string SimplePattern = @"xsd\simple\simple.xsd";
const string SimplePattern = @"xsd\simple\*.xsd";
const string ArrayOrderPattern = @"xsd\array-order\array-order.xsd";
const string ClientPattern = @"xsd\client\client.xsd";
const string IataPattern = @"xsd\iata\*.xsd";
Expand Down
11 changes: 11 additions & 0 deletions XmlSchemaClassGenerator.Tests/xsd/simple/restriction.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="module">
<xsd:complexType>
<xsd:complexContent>
<xsd:restriction base="xsd:anyType">
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
</xsd:element>
</xsd:schema>

0 comments on commit c9d50ea

Please sign in to comment.