Improve XmlDoc output (#1503)

* Add command description and examples in XML Output

Closes #1115
This commit is contained in:
Yennefer
2024-03-29 20:30:59 +01:00
committed by GitHub
parent 43f9ae92ad
commit 1a3249cdae
11 changed files with 87 additions and 0 deletions

View File

@ -110,6 +110,26 @@ public sealed partial class CommandAppTests
return Verifier.Verify(result.Output);
}
[Fact]
[Expectation("Test_10")]
public Task Should_Dump_Correct_Model_For_Case_6()
{
// Given
var fixture = new CommandAppTester();
fixture.Configure(config =>
{
config.AddCommand<DogCommand>("dog")
.WithExample("dog -g")
.WithExample("dog --good-boy");
});
// When
var result = fixture.Run(Constants.XmlDocCommand);
// Then
return Verifier.Verify(result.Output);
}
[Fact]
[Expectation("Test_6")]
public Task Should_Dump_Correct_Model_For_Model_With_Default_Command()