Skip to content

Commit cc91ae7

Browse files
committed
using pascal casing + copy schemas to bin folder
1 parent 45ea367 commit cc91ae7

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

tools/deploymentsSchemaTests/deploymentsSchemaTests.csproj renamed to tools/DeploymentsSchemaTests1/DeploymentsSchemaTests1.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
<IsPackable>false</IsPackable>
77
</PropertyGroup>
88

9+
<ItemGroup>
10+
<None Include="../../schemas/**" CopyToOutputDirectory="PreserveNewest" Link="schemas\%(RecursiveDir)%(Filename)%(Extension)" />
11+
</ItemGroup>
12+
913
<ItemGroup>
1014
<PackageReference Include="Azure.Deployments.Templates" Version="1.0.154" />
1115
<PackageReference Include="FluentAssertions" Version="5.10.3" />

tools/deploymentsSchemaTests/deploymentsSchemaTests.sln renamed to tools/DeploymentsSchemaTests1/DeploymentsSchemaTests1.sln

File renamed without changes.

tools/deploymentsSchemaTests/DeploymentsTests.cs renamed to tools/DeploymentsSchemaTests1/DeploymentsTests.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,18 @@
33
using System;
44
using System.IO;
55

6-
namespace deploymentsSchemaTests
6+
namespace DeploymentsSchemaTests
77
{
88
[TestClass]
99
public class DeploymentsTests
1010
{
1111
[TestMethod]
1212
public void TestSchemaLoader()
1313
{
14-
// Calling Path.Combine to construct the path to schemas folder
15-
var schemasPath = Path.Combine(new string[] { "..", "..", "..", "..", "..", "schemas" });
1614
Action createAssemblyFunc = () =>
1715
TestSchemaCache.CreateFromFilePaths(
1816
filePaths: Directory.EnumerateFiles(
19-
path: schemasPath,
17+
path: "schemas",
2018
searchPattern: "*.json",
2119
searchOption: SearchOption.AllDirectories));
2220
createAssemblyFunc.Should().NotThrow();

tools/deploymentsSchemaTests/TestSchemaCache.cs renamed to tools/DeploymentsSchemaTests1/TestSchemaCache.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
using System.IO;
1414
using System.Linq;
1515

16-
namespace deploymentsSchemaTests
16+
namespace DeploymentsSchemaTests
1717
{
1818
/// <summary>
1919
/// Test schema cache

0 commit comments

Comments
 (0)