diff options
Diffstat (limited to 'src/test/CppTests/Config.test.ts')
| -rw-r--r-- | src/test/CppTests/Config.test.ts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/CppTests/Config.test.ts b/src/test/CppTests/Config.test.ts index bb16c20..f210cf4 100644 --- a/src/test/CppTests/Config.test.ts +++ b/src/test/CppTests/Config.test.ts @@ -102,4 +102,16 @@ suite("C++ - Configuration Tests", () => { assert.equal("/**\n * @brief \n * \n * @author your name\n" + " * @date " + moment().format("YYYY-MM-DD") + "\n * @file MockDocument.h\n */", result); }); + + test("Custom smart text Ctor", () => { + testSetup.cfg.ctorText = "Test {name}"; + const result = testSetup.SetLine("Foo();").GetResult(); + assert.equal("/**\n * @brief Test Foo\n * \n */", result); + }); + + test("Custom smart text Dtor", () => { + testSetup.cfg.dtorText = "Test {name}"; + const result = testSetup.SetLine("~Foo();").GetResult(); + assert.equal("/**\n * @brief Test Foo\n * \n */", result); + }); }); |