Summary
Defines a set of default methods and properties helpful when testing MsBuild
ITask implementations.
- Namespace
- NBuildKit
.MsBuild .Tasks .Tests - Base Types
-
- object
graph TD
Base0["object"]-->Type
Type["TaskTest"]
class Type type-node
Syntax
public abstract class TaskTest
Properties
| Name | Value | Summary |
|---|---|---|
| BuildEngine | Mock |
Gets the
IBuildEngine instance that can be used as a mock MsBuild build engine.
|
Methods
| Name | Value | Summary |
|---|---|---|
| Create |
Data |
Creates a
DataReceivedEventArgs instance with the given test data.
static
|
| ExecutedScripts |
IEnumerable |
Returns the collection containing all the scripts that were executed during the test.
|
| Initialize |
void |
Initializes the build engine.
|
| Verify |
void |
Verifies the number of times the build engine has been invoked.
|
| Verify |
void |
Verifies the number of log messages that should have been recorded.
|