48 lines
1.1 KiB
Plaintext
48 lines
1.1 KiB
Plaintext
{
|
|
"xUnit Test Method AAA": {
|
|
"scope": "csharp",
|
|
"prefix": "xut",
|
|
"description": "xUnit test method with explicit Arrange/Act/Assert",
|
|
"body": [
|
|
"[Fact]",
|
|
"public async Task ${1:MethodName}_Should${2:ExpectedOutcome}_When${3:Scenario}()",
|
|
"{",
|
|
" // Arrange",
|
|
" ${4:// setup}",
|
|
"",
|
|
" // Act",
|
|
" ${5:// execute}",
|
|
"",
|
|
" // Assert",
|
|
" ${6:// verify}",
|
|
"}"
|
|
]
|
|
},
|
|
"xUnit Test Class AAA": {
|
|
"scope": "csharp",
|
|
"prefix": "xutc",
|
|
"description": "xUnit test class scaffold with AAA guidance",
|
|
"body": [
|
|
"using Xunit;",
|
|
"",
|
|
"namespace ${1:NeonSprawl.Server.Tests};",
|
|
"",
|
|
"public sealed class ${2:Feature}Tests",
|
|
"{",
|
|
" [Fact]",
|
|
" public async Task ${3:MethodName}_Should${4:ExpectedOutcome}_When${5:Scenario}()",
|
|
" {",
|
|
" // Arrange",
|
|
" ${6:// setup}",
|
|
"",
|
|
" // Act",
|
|
" ${7:// execute}",
|
|
"",
|
|
" // Assert",
|
|
" ${8:// verify}",
|
|
" }",
|
|
"}"
|
|
]
|
|
}
|
|
}
|