Skip to content

Simple end-to-end test framework for .NET console applications

Notifications You must be signed in to change notification settings

PatrickAJonas/TestTools

 
 

Repository files navigation

AspNetCore

Provides test helper classes for instantiating ASP.NET Core classes like RoleManager and UserManager.

Console

Console 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.

Usage

To use it, use this syntax within a unit test:

string view =
@"Please enter something: <<Something
>>You said 'Something'.";

IntelliTect.TestTools.Console.ConsoleAssert.Expect(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.

... More to come later.

Windows UI Test Wrapper

Provides wrappers for calling Microsoft's UiTestControl classes for WPF and WinForm applications in a more concise, reliable manner

Usage

To use, inherit a class from the solution's DesktopControls class and make application-specific calls in the inherited class using generic types:

FindWpfControlByAutomationId( "textBoxControl1", c => new WpfEdit( c ) );

Inherit a class from BaseTestInherit and set the ApplicationLocation and create a new field for the above inherited class.

Inherit test classes from the BaseTestInherit inherited class, and call methods via the new field.

Example projects at https://github.com/IntelliTect/TestTools

About

Simple end-to-end test framework for .NET console applications

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%