Esempio n. 1
0
        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)");
        }
Esempio n. 2
0
        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]");
        }
Esempio n. 3
0
        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");
        }