Marek
57dd8ee410
#1718 TestConsole can now be configured and accessed in CommandAppTester ( #1803 )
...
* TestConsole can now be configured and accessed in CommandAppTester
* Add test with mocked user inputs for interactive command
* Add documentation for using the CommandAppTester
Co-authored-by: Patrik Svensson <patriksvensson@users.noreply.github.com>
Co-authored-by: Marek Magath <Marek.Magath@solarwinds.com>
2025-04-14 10:38:03 +02:00
Frank Ray
8c5264d117
Trimming of TestConsole output by CommandAppTester is configurable
2025-01-21 08:39:31 +00:00
Nils Andresen
a94bc15746
Add the possibility to register multiple interceptors ( #1412 )
...
Having the interceptors registered with the ITypeRegistrar also enables the usage of ITypeResolver in interceptors.
2024-01-06 22:28:20 +00:00
Nils Andresen
44300c871f
fixed line-endings
2023-11-28 00:14:54 +01:00
Nils Andresen
023c77ff09
fixed the build-errors
...
All of which I introduced earlier.
2023-11-11 00:09:08 +01:00
Nils Andresen
ead7115cbe
( #1313 ) Add new test to TypeRegistrarBaseTests
...
to assert the assumptions we're making in the code.
2023-11-11 00:09:08 +01:00
Frank Ray
0ec70a44db
Async command unit tests
2023-05-19 17:19:17 +01:00
Cédric Luthi
7b9553dd22
Add possibility to set description and/or data for the default command ( #1091 )
2023-01-12 12:12:27 +00:00
Patrik Svensson
52c1d9122b
Add global usings ( #668 )
...
* Use global usings
* Fix namespace declarations for test projects
2021-12-23 16:50:31 +01:00
Patrik Svensson
ec1188b837
Use file scoped namespace declarations
2021-12-22 08:51:17 -05:00
Nils Andresen
48df9cf68b
( #555 ) added TypeRegistrarBaseTests
...
as a very simple test harness to test implementations of
ITypeRegistrar / ITypeResolver
2021-11-14 01:19:27 +01:00
Nils Andresen
6b5b31957c
Added a TypeRegistrar to CommandAppTester
...
exposed as a public property.
For convenience, and to keep the similarity to the real CommandApp
it is also available in the ctor of CommandAppTester.
2021-06-24 01:42:29 +02:00
Phil Scott
01f707c78d
Exposes Pretty property of CommandAppException
...
If a user is propagating the exceptions we aren't going to automatically display them. They might still want to get this exception message and use it, so we'll make it publicly available.
2021-04-23 16:44:41 +02:00
Patrik Svensson
04efd1719c
Add new test framework for consoles
2021-04-19 20:39:45 -04:00