IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
NUnit.Framework.Attributes.Tests.CommandWrapperTests.ExpectedExceptionAttribute.ExpectedExceptionCommand Class Reference
+ Inheritance diagram for NUnit.Framework.Attributes.Tests.CommandWrapperTests.ExpectedExceptionAttribute.ExpectedExceptionCommand:
+ Collaboration diagram for NUnit.Framework.Attributes.Tests.CommandWrapperTests.ExpectedExceptionAttribute.ExpectedExceptionCommand:

Public Member Functions

 ExpectedExceptionCommand (TestCommand innerCommand, Type expectedType)
 
override TestResult Execute (TestExecutionContext context)
 Runs the test in a specified context, returning a TestResult. More...
 
- Public Member Functions inherited from NUnit.Framework.Internal.Commands.TestCommand
 TestCommand (Test test)
 Construct a TestCommand for a test. More...
 

Private Attributes

Type _expectedType
 

Additional Inherited Members

- Protected Member Functions inherited from NUnit.Framework.Internal.Commands.DelegatingTestCommand
 DelegatingTestCommand (TestCommand innerCommand)
 TODO: Documentation needed for constructor More...
 
- Protected Attributes inherited from NUnit.Framework.Internal.Commands.DelegatingTestCommand
TestCommand innerCommand
 TODO: Documentation needed for field More...
 
- Properties inherited from NUnit.Framework.Internal.Commands.TestCommand
Test Test [get, private set]
 Gets the test associated with this command. More...
 

Constructor & Destructor Documentation

NUnit.Framework.Attributes.Tests.CommandWrapperTests.ExpectedExceptionAttribute.ExpectedExceptionCommand.ExpectedExceptionCommand ( TestCommand  innerCommand,
Type  expectedType 
)
inline

Member Function Documentation

override TestResult NUnit.Framework.Attributes.Tests.CommandWrapperTests.ExpectedExceptionAttribute.ExpectedExceptionCommand.Execute ( TestExecutionContext  context)
inlinevirtual

Runs the test in a specified context, returning a TestResult.

Parameters
contextThe TestExecutionContext to be used for running the test.
Returns
A TestResult

Implements NUnit.Framework.Internal.Commands.TestCommand.

References NUnit.Framework.Internal.TestExecutionContext.CurrentResult, NUnit.Framework.Interfaces.ResultState.Failure, NUnit.Framework.Internal.TestResult.SetResult(), and NUnit.Framework.Interfaces.ResultState.Success.

Member Data Documentation

Type NUnit.Framework.Attributes.Tests.CommandWrapperTests.ExpectedExceptionAttribute.ExpectedExceptionCommand._expectedType
private

The documentation for this class was generated from the following file: