BadScript 2
Loading...
Searching...
No Matches
CommandLine.Tests.VerbAttributeTests Class Reference

Classes

class  TestVerbAttribute
 

Public Member Functions

void ThrowsHelpText (string helpText, Type resourceType)
 

Static Public Member Functions

static void VerbHelpText (string helpText, Type resourceType, string expected)
 

Detailed Description

Definition at line 7 of file VerbAttributeTests.cs.

Member Function Documentation

◆ ThrowsHelpText()

void CommandLine.Tests.VerbAttributeTests.ThrowsHelpText ( string  helpText,
Type  resourceType 
)

Definition at line 31 of file VerbAttributeTests.cs.

32 {
33 TestVerbAttribute verbAttribute = new TestVerbAttribute
34 {
35 HelpText = helpText,
36 ResourceType = resourceType
37 };
38
39 // Verify exception
40 Assert.Throws<ArgumentException>(() => verbAttribute.HelpText);
41 }

◆ VerbHelpText()

static void CommandLine.Tests.VerbAttributeTests.VerbHelpText ( string  helpText,
Type  resourceType,
string  expected 
)
static

Definition at line 15 of file VerbAttributeTests.cs.

16 {
17 TestVerbAttribute verbAttribute = new TestVerbAttribute
18 {
19 HelpText = helpText,
20 ResourceType = resourceType
21 };
22
23 Assert.Equal(expected, verbAttribute.HelpText);
24 }

The documentation for this class was generated from the following file: