Skip to content

Commit

Permalink
Add Network test
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Schulte committed May 10, 2016
1 parent 31f3a92 commit d406c85
Show file tree
Hide file tree
Showing 5 changed files with 10,472 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ public static void Compute()
RunSwaggerTest("compute.json", "Compute");
}

[Fact]
public static void Network()
{
RunSwaggerTest("network.json", "Network");
}

private static void RunSwaggerTest(string swaggerFileName, string expectedFolderName)
{
SwaggerSpecHelper.RunTests<AzureResourceSchemaCodeGenerator>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@
<Content Include="Expected\Compute\Microsoft.Compute.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Expected\Network\Microsoft.Network.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<None Include="packages.config">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
Expand All @@ -106,6 +109,9 @@
<Content Include="Swagger\compute.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Swagger\network.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Modelers\Swagger.Tests\AutoRest.Modeler.Swagger.Tests.csproj">
Expand Down
Loading

0 comments on commit d406c85

Please sign in to comment.