TaskTest Class

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<IBuildEngine4>
Gets the IBuildEngine instance that can be used as a mock MsBuild build engine.

Methods

Name Value Summary
CreateDataReceivedEventArgs(string) DataReceivedEventArgs
Creates a DataReceivedEventArgs instance with the given test data.
static
ExecutedScripts() IEnumerable<string>
Returns the collection containing all the scripts that were executed during the test.
InitializeBuildEngine(bool[]) void
Initializes the build engine.
VerifyNumberOfInvocations(int) void
Verifies the number of times the build engine has been invoked.
VerifyNumberOfLogMessages(int, int, int) void
Verifies the number of log messages that should have been recorded.