public void DefinedParameter_GetUsageDocumentationWithoutDescription() { // ARRANGE IDefinedParameter definedParameter = new DefinedParameter <int>("test", null, str => 5); // ACT string documentation = definedParameter.GetUsageDocumentation(); // ASSERT documentation.Should().BeEquivalentTo("[test] (Int32)"); }
public void DefinedParameter_GetUsageDocumentationWithoutDescriptionNorType() { // ARRANGE var definedParameter = new DefinedParameter <int>("test", "Parameter with testing int value", str => 5); // ACT string documentation = definedParameter.GetUsageDocumentation(includeType: false, includeDescription: false); // ASSERT documentation.Should().BeEquivalentTo("[test]"); }
public void DefinedParameter_GetUsageDocumentationWithDescriptionAndType() { // ARRANGE IDefinedParameter definedParameter = new DefinedParameter <int>("test", "Parameter with testing int value", str => 5); // ACT string documentation = definedParameter.GetUsageDocumentation(includeType: true); // ASSERT documentation.Should().BeEquivalentTo("[test] (Int32) Parameter with testing int value"); }