Warn Class

Summary

Provides static methods to express conditions that must be met for the test to succeed. If any test fails, a warning is issued.
Namespace
TCLite
Base Types
  • object
graph BT Type-->Base0["object"] Type["Warn"] class Type type-node

Syntax

public class Warn

Methods

Name Value Summary
Equals(object, object) bool
DO NOT USE! The Equals method throws an InvalidOperationException. This is done to make sure there is no mistake by calling this function.
static
If(bool, Func<string>) void
Asserts that a condition is true. If the condition is false, a warning is issued.
static
If(bool, string, object[]) void
Asserts that a condition is true. If the condition is false, a warning is issued.
static
If(Func<bool>, Func<string>) void
Asserts that a condition is false. If the condition is true a warning is issued.
static
If(Func<bool>, string, object[]) void
Asserts that a condition is false. If the condition is true a warning is issued.
static
If<TActual>(ActualValueDelegate<TActual>, IResolveConstraint, Func<string>) void
Apply a constraint to an actual value, succeeding if the constraint fails and issuing a warning on failure.
static
If<TActual>(ActualValueDelegate<TActual>, IResolveConstraint, string, object[]) void
Apply a constraint to an actual value, succeeding if the constraint fails and issuing a warning on success.
static
If<TActual>(TActual, IResolveConstraint, Func<string>) void
Apply a constraint to an actual value, succeeding if the constraint is satisfied and issuing a warning on failure.
static
If<TActual>(TActual, IResolveConstraint, string, object[]) void
Apply a constraint to an actual value, succeeding if the constraint fails and issuing a warning if it succeeds.
static
ReferenceEquals(object, object) void
DO NOT USE! The ReferenceEquals method throws an InvalidOperationException. This is done to make sure there is no mistake by calling this function.
static
Unless(bool, Func<string>) void
Asserts that a condition is true. If the condition is false, a warning is issued.
static
Unless(bool, string, object[]) void
Asserts that a condition is true. If the condition is false, a warning is issued.
static
Unless(Func<bool>, Func<string>) void
Asserts that a condition is true. If the condition is false, a warning is issued.
static
Unless(Func<bool>, string, object[]) void
Asserts that a condition is true. If the condition is false, a warning is issued.
static
Unless(Func<bool>) void
Asserts that a condition is true. If the condition is false, a warning is issued.
static
Unless(TestDelegate, IResolveConstraint) void
Asserts that the code represented by a delegate throws an exception that satisfies the constraint provided.
static
Unless<TActual>(ActualValueDelegate<TActual>, IResolveConstraint, Func<string>) void
Apply a constraint to an actual value, succeeding if the constraint is satisfied and issuing a warning on failure.
static
Unless<TActual>(ActualValueDelegate<TActual>, IResolveConstraint, string, object[]) void
Apply a constraint to an actual value, succeeding if the constraint is satisfied and issuing a warning on failure.
static
Unless<TActual>(TActual, IResolveConstraint, Func<string>) void
Apply a constraint to an actual value, succeeding if the constraint is satisfied and issuing a warning on failure.
static
Unless<TActual>(TActual, IResolveConstraint, string, object[]) void
Apply a constraint to an actual value, succeeding if the constraint is satisfied and issuing a warning on failure.
static