Documentation
Table of Contents

Class TargetContractException

Namespace
IntentSharp.Testing
Assembly
IntentSharp.dll

A target failed a step of RunAsync(ITarget, TargetContractScript, CancellationToken). Step names the step, and the message says what the kit expected and what the target did, so a test of any framework shows why it failed.

public sealed class TargetContractException : IntentSharpException, ISerializable
Inheritance
object
Exception
TargetContractException
Implements
ISerializable
Inherited Members
Exception.GetBaseException()
Exception.GetType()
Exception.ToString()
Exception.Data
Exception.HelpLink
Exception.HResult
Exception.InnerException
Exception.Message
Exception.Source
Exception.StackTrace
Exception.TargetSite
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.ReferenceEquals(object, object)
Extension Methods

Constructors

TargetContractException(string)

Creates the exception with a message; set Step and Target with an initializer.

TargetContractException(string, Exception)

Creates the exception with a message and the exception the target or the runtime threw.

Properties

Step

The step that failed: script (the script cannot be run against this target), describe (two descriptions of the unchanged target differ, or one fails), run (the whole operation did not execute the scripted command, or touched other entities or returned too few records) or unchecked (a command that was not checked could reach the target). Empty unless set.

Target

The name of the target that failed; null when it is not known.