Skip to content
This repository was archived by the owner on Jan 8, 2019. It is now read-only.

Commit

Permalink
add xmldoc generation test
Browse files Browse the repository at this point in the history
  • Loading branch information
enricosada committed Feb 15, 2017
1 parent d6d1729 commit 8f67c80
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions test/dotnet-new.Tests/CommonScenarioTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,29 @@ public void TestLibrary()
.Should().Pass();
}

[Fact]
public void TestXmlDoc()
{
var rootPath = Temp.CreateDirectory().Path;

TestAssets.CopyDirTo("TestLibrary", rootPath);
TestAssets.CopyDirTo("TestSuiteProps", rootPath);

Func<string,TestCommand> test = name => new TestCommand(name) { WorkingDirectory = rootPath };

test("dotnet")
.Execute($"restore {RestoreDefaultArgs} {RestoreSourcesArgs(NugetConfigSources)} {RestoreProps()}")
.Should().Pass();

Assert.Equal(false, File.Exists(Path.Combine(rootPath, "doc.xml")));

test("dotnet")
.Execute($"build {LogArgs} /p:DocumentationFile=doc.xml")
.Should().Pass();

Assert.Equal(true, File.Exists(Path.Combine(rootPath, "doc.xml")));
}

[Fact]
public void TestMultipleLibraryInSameDir()
{
Expand Down

0 comments on commit 8f67c80

Please sign in to comment.