MainMethod
Gets or sets the name of the Main
method. The default value of this property is Main
. This option
is useful to work around the CS0017
error.
To set this option in a test, add this comment to your test file: // @MainMethod(name)
.
Declaration
public string? MainMethod { get; set; }
Property Value
Type | Description |
---|---|
string |