diff --git a/test/Microsoft.TemplateEngine.TestTemplates/test_templates/TemplateWithConditions/.dockerignore b/test/Microsoft.TemplateEngine.TestTemplates/test_templates/TemplateWithConditions/.dockerignore index 3e0c3b6b48f..c1a1b6e50b8 100644 --- a/test/Microsoft.TemplateEngine.TestTemplates/test_templates/TemplateWithConditions/.dockerignore +++ b/test/Microsoft.TemplateEngine.TestTemplates/test_templates/TemplateWithConditions/.dockerignore @@ -6,3 +6,4 @@ foo ## comment bar #bar #endif +baz diff --git a/test/Microsoft.TemplateEngine.TestTemplates/test_templates/TemplateWithConditions/.editorconfig b/test/Microsoft.TemplateEngine.TestTemplates/test_templates/TemplateWithConditions/.editorconfig index 3e0c3b6b48f..c1a1b6e50b8 100644 --- a/test/Microsoft.TemplateEngine.TestTemplates/test_templates/TemplateWithConditions/.editorconfig +++ b/test/Microsoft.TemplateEngine.TestTemplates/test_templates/TemplateWithConditions/.editorconfig @@ -6,3 +6,4 @@ foo ## comment bar #bar #endif +baz diff --git a/test/Microsoft.TemplateEngine.TestTemplates/test_templates/TemplateWithConditions/.gitattributes b/test/Microsoft.TemplateEngine.TestTemplates/test_templates/TemplateWithConditions/.gitattributes index 875cdb0f8e2..506efc1e28c 100644 --- a/test/Microsoft.TemplateEngine.TestTemplates/test_templates/TemplateWithConditions/.gitattributes +++ b/test/Microsoft.TemplateEngine.TestTemplates/test_templates/TemplateWithConditions/.gitattributes @@ -6,3 +6,4 @@ foo ## comment bar #bar #endif +baz diff --git a/test/Microsoft.TemplateEngine.TestTemplates/test_templates/TemplateWithConditions/.gitignore b/test/Microsoft.TemplateEngine.TestTemplates/test_templates/TemplateWithConditions/.gitignore index 3e0c3b6b48f..c1a1b6e50b8 100644 --- a/test/Microsoft.TemplateEngine.TestTemplates/test_templates/TemplateWithConditions/.gitignore +++ b/test/Microsoft.TemplateEngine.TestTemplates/test_templates/TemplateWithConditions/.gitignore @@ -6,3 +6,4 @@ foo ## comment bar #bar #endif +baz diff --git a/test/Microsoft.TemplateEngine.TestTemplates/test_templates/TemplateWithConditions/Dockerfile b/test/Microsoft.TemplateEngine.TestTemplates/test_templates/TemplateWithConditions/Dockerfile index 3e0c3b6b48f..c1a1b6e50b8 100644 --- a/test/Microsoft.TemplateEngine.TestTemplates/test_templates/TemplateWithConditions/Dockerfile +++ b/test/Microsoft.TemplateEngine.TestTemplates/test_templates/TemplateWithConditions/Dockerfile @@ -6,3 +6,4 @@ foo ## comment bar #bar #endif +baz diff --git a/test/Microsoft.TemplateEngine.TestTemplates/test_templates/TemplateWithConditions/nuget.config b/test/Microsoft.TemplateEngine.TestTemplates/test_templates/TemplateWithConditions/nuget.config index 39cab8130e0..70125a73910 100644 --- a/test/Microsoft.TemplateEngine.TestTemplates/test_templates/TemplateWithConditions/nuget.config +++ b/test/Microsoft.TemplateEngine.TestTemplates/test_templates/TemplateWithConditions/nuget.config @@ -6,3 +6,4 @@ foo +baz diff --git a/test/Microsoft.TemplateEngine.TestTemplates/test_templates/TemplateWithConditions/test.cake b/test/Microsoft.TemplateEngine.TestTemplates/test_templates/TemplateWithConditions/test.cake index ffcf10bb27b..c3097539d3b 100644 --- a/test/Microsoft.TemplateEngine.TestTemplates/test_templates/TemplateWithConditions/test.cake +++ b/test/Microsoft.TemplateEngine.TestTemplates/test_templates/TemplateWithConditions/test.cake @@ -6,3 +6,4 @@ foo // comment bar bar #endif +baz diff --git a/test/Microsoft.TemplateEngine.TestTemplates/test_templates/TemplateWithConditions/test.md b/test/Microsoft.TemplateEngine.TestTemplates/test_templates/TemplateWithConditions/test.md index 39cab8130e0..70125a73910 100644 --- a/test/Microsoft.TemplateEngine.TestTemplates/test_templates/TemplateWithConditions/test.md +++ b/test/Microsoft.TemplateEngine.TestTemplates/test_templates/TemplateWithConditions/test.md @@ -6,3 +6,4 @@ foo +baz diff --git a/test/Microsoft.TemplateEngine.TestTemplates/test_templates/TemplateWithConditions/test.sln b/test/Microsoft.TemplateEngine.TestTemplates/test_templates/TemplateWithConditions/test.sln index 3e0c3b6b48f..c1a1b6e50b8 100644 --- a/test/Microsoft.TemplateEngine.TestTemplates/test_templates/TemplateWithConditions/test.sln +++ b/test/Microsoft.TemplateEngine.TestTemplates/test_templates/TemplateWithConditions/test.sln @@ -6,3 +6,4 @@ foo ## comment bar #bar #endif +baz diff --git a/test/Microsoft.TemplateEngine.TestTemplates/test_templates/TemplateWithConditions/test.yaml b/test/Microsoft.TemplateEngine.TestTemplates/test_templates/TemplateWithConditions/test.yaml index 3e0c3b6b48f..c1a1b6e50b8 100644 --- a/test/Microsoft.TemplateEngine.TestTemplates/test_templates/TemplateWithConditions/test.yaml +++ b/test/Microsoft.TemplateEngine.TestTemplates/test_templates/TemplateWithConditions/test.yaml @@ -6,3 +6,4 @@ foo ## comment bar #bar #endif +baz diff --git a/test/dotnet-new3.UnitTests/DotnetNewInstantiate.cs b/test/dotnet-new3.UnitTests/DotnetNewInstantiate.cs index 4009d4c650b..f9466a034b6 100644 --- a/test/dotnet-new3.UnitTests/DotnetNewInstantiate.cs +++ b/test/dotnet-new3.UnitTests/DotnetNewInstantiate.cs @@ -274,6 +274,7 @@ public void CanInstantiateTemplate_WithConditions_BasedOnFileName(string testCas //## comment bar //#bar //#endif + //baz //For extension test cases the template has 'test.' file defined. Helpers.InstallTestTemplate("TemplateWithConditions", _log, home, workingDirectory); @@ -288,7 +289,7 @@ public void CanInstantiateTemplate_WithConditions_BasedOnFileName(string testCas string testFile = Path.Combine(workingDirectory, fileName); Assert.True(File.Exists(testFile)); - Assert.Equal($"{string.Format(expectedCommandFormat, "foo")}{expectedEol}foo{expectedEol}", File.ReadAllText(testFile)); + Assert.Equal($"{string.Format(expectedCommandFormat, "foo")}{expectedEol}foo{expectedEol}baz{expectedEol}", File.ReadAllText(testFile)); workingDirectory = TestUtils.CreateTemporaryFolder(); new DotnetNewCommand(_log, "TestAssets.TemplateWithConditions", "--A", "false") @@ -316,7 +317,7 @@ public void CanInstantiateTemplate_WithConditions_BasedOnFileName(string testCas testFile = Path.Combine(workingDirectory, fileName); Assert.True(File.Exists(testFile)); - Assert.Equal($"{string.Format(expectedCommandFormat, "bar")}{expectedEol}bar{expectedEol}", File.ReadAllText(testFile)); + Assert.Equal($"{string.Format(expectedCommandFormat, "bar")}{expectedEol}bar{expectedEol}baz{expectedEol}", File.ReadAllText(testFile)); } [Fact]