Click or drag to resize

SmartTest Class

This is the main class for SmartTests.
Inheritance Hierarchy
SystemObject
  SmartTestsSmartTest

Namespace:  SmartTests
Assembly:  SmartTests (in SmartTests.dll) Version: 1.9.0
Syntax
public static class SmartTest

The SmartTest type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberByte Obsolete.
Creates a new range of byte
Public propertyStatic memberByteRange
Creates a new range of byte
Public propertyStatic memberDateTimeRange
Creates a new range of DateTime
Public propertyStatic memberDecimalRange
Creates a new range of decimal
Public propertyStatic memberDouble Obsolete.
Creates a new range of double
Public propertyStatic memberDoubleRange
Creates a new range of double
Public propertyStatic memberEnum Obsolete.
Creates a new range of Enum
Public propertyStatic memberEnumRange
Creates a new range of Enum
Public propertyStatic memberFloat Obsolete.
Creates a new range of float
Public propertyStatic memberInt Obsolete.
Creates a new range of int
Public propertyStatic memberInt16Range
Creates a new range of short
Public propertyStatic memberInt32Range
Creates a new range of int
Public propertyStatic memberInt64Range
Creates a new range of long
Public propertyStatic memberLong Obsolete.
Creates a new range of long
Public propertyStatic memberSByte Obsolete.
Creates a new range of sbyte
Public propertyStatic memberSByteRange
Creates a new range of sbyte
Public propertyStatic memberShort Obsolete.
Creates a new range of short
Public propertyStatic memberSingleRange
Creates a new range of float
Public propertyStatic memberSmartAssert
The simplest way to access Smart Assertions.
Public propertyStatic memberUInt Obsolete.
Creates a new range of uint
Public propertyStatic memberUInt16Range
Creates a new range of ushort
Public propertyStatic memberUInt32Range
Creates a new range of uint
Public propertyStatic memberUInt64Range
Creates a new range of ulong
Public propertyStatic memberULong Obsolete.
Creates a new range of ulong
Public propertyStatic memberUShort Obsolete.
Creates a new range of ushort
Top
Methods
  NameDescription
Public methodStatic memberCode exampleAssignT
Public methodStatic memberCode exampleCase(Criteria)
Creates an instance of Case class for a global Criteria (not specific to a parameter).
Public methodStatic memberCode exampleCase(String, Criteria)
Creates an instance of Case class for a specific parameter Criteria.
Public methodStatic memberCode exampleCaseT(ExpressionFuncT, Object, Criteria)
Creates an instance of Case class for a specific parameter path Criteria.
Public methodStatic memberCode exampleCaseTParam, T(ExpressionFuncTParam, EnumTypeHelperPlaceHolderT, T)
Creates an instance of Case class for a specific parameter path.
Public methodStatic memberCode exampleCaseTParam, T(ExpressionFuncTParam, INumericTypeT, T)
Creates an instance of Case class for a specific parameter path.
Public methodStatic memberCode exampleErrorCaseTParam, T(ExpressionFuncTParam, EnumTypeHelperPlaceHolderT, T)
Creates an instance of Case class for a specific parameter path to manage errors.
Public methodStatic memberCode exampleErrorCaseTParam, T(ExpressionFuncTParam, INumericTypeT, T)
Creates an instance of Case class for a specific parameter path.
Public methodStatic memberCode exampleRunTest(Case, Act, Assertion)
Executes the Act part of the test and its related Smart Assertions.
Public methodStatic memberCode exampleRunTest(Case, ExpressionActionActContext, Assertion)
Executes the Act part of the test and its related Smart Assertions.
Public methodStatic memberCode exampleRunTest(Case, ExpressionAction, Assertion)
Executes the Act part of the test and its related Smart Assertions.
Public methodStatic memberCode exampleRunTest(Criteria, ExpressionActionActContext, Assertion)
Executes the Act part of the test and its related Smart Assertions.
Public methodStatic memberCode exampleRunTest(Criteria, ExpressionAction, Assertion)
Executes the Act part of the test and its related Smart Assertions.
Public methodStatic memberCode exampleRunTestT(Case, ActT, Assertion)
Executes the Act part of the test and its related Smart Assertions.
Public methodStatic memberCode exampleRunTestT(Case, ExpressionFuncT, Assertion)
Executes the Act part of the test and its related Smart Assertions.
Public methodStatic memberCode exampleRunTestT(Case, ExpressionFuncActContext, T, Assertion)
Executes the Act part of the test, and its related Smart Assertions, that involves implicit declarations for Assertions.
Public methodStatic memberCode exampleRunTestT(Criteria, ActT, Assertion)
Executes the Act part of the test and its related Smart Assertions.
Public methodStatic memberCode exampleRunTestT(Criteria, ExpressionFuncT, Assertion)
Executes the Act part of the test and its related Smart Assertions.
Public methodStatic memberCode exampleRunTestT(Criteria, ExpressionFuncActContext, T, Assertion)
Executes the Act part of the test, and its related Smart Assertions, that involves implicit declarations for Assertions.
Public methodStatic memberToString
Convert a value as a string
Top
Remarks
It is recommended to use it with using static SmartTests.SmartTest.
See Also