-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,23 @@ | ||
ConsoleView | ||
=========== | ||
|
||
ConsoleView is a simple end-to-end test framework for .NET console applications. | ||
|
||
This currently has non-optimal nomenclature and is not guaranteed to be efficient, but it appears to work. | ||
|
||
To use it, use this syntax within a unit test: | ||
|
||
Usage | ||
----- | ||
To use it, use this syntax within a unit test: | ||
|
||
``` | ||
string view = | ||
@"Please enter something: <<Something | ||
>>You said 'Something'."; | ||
IntelliTect.ConsoleView.Tester.Test(view, () => { MyMethod() } ); | ||
``` | ||
|
||
|
||
The view variable contains a sample view to test for. Within it, the << and >> symbols indicate that the inner content is entered into the console by the user -- including the newline, as they would press Enter. | ||
The view variable contains a sample view to test for. Within it, the `<<` and `>>` symbols indicate that the inner content is entered into the console by the user -- including the newline, as they would press Enter. | ||
|
||
... More to come later. |