NUnit.Framework.TestAttribute
E697441
NUnit.Framework.TestAttribute is a NUnit testing framework attribute used to mark methods as executable unit tests in C# test suites.
Statements (47)
| Predicate | Object |
|---|---|
| instanceOf |
Attribute
ⓘ
NUnit attribute ⓘ test method attribute ⓘ |
| appliesTo | method ⓘ |
| availableIn | NUnit 3.x NERFINISHED ⓘ |
| belongsToCategory | attributes for test identification ⓘ |
| canBeCombinedWith |
NUnit.Framework.CategoryAttribute
NERFINISHED
ⓘ
NUnit.Framework.DescriptionAttribute NERFINISHED ⓘ NUnit.Framework.IgnoreAttribute NERFINISHED ⓘ NUnit.Framework.RetryAttribute NERFINISHED ⓘ NUnit.Framework.TestCaseAttribute NERFINISHED ⓘ NUnit.Framework.TestCaseSourceAttribute NERFINISHED ⓘ NUnit.Framework.TimeoutAttribute NERFINISHED ⓘ |
| category | unit testing ⓘ |
| definedInNamespace | NUnit.Framework NERFINISHED ⓘ |
| executionModel | invoked by NUnit test runner via reflection ⓘ |
| hasScope |
instance methods
ⓘ
static methods ⓘ |
| hasTargetFramework |
.NET 5+
ⓘ
.NET Core NERFINISHED ⓘ .NET Framework NERFINISHED ⓘ |
| hasUsageExample | [Test] public void MyTest() { /* assertions */ } ⓘ |
| hasVisibilityRequirement | method must be discoverable via reflection ⓘ |
| introducedFor | NUnit 2.x NERFINISHED ⓘ |
| isAlternativeTo | NUnit.Framework.TestCaseAttribute for simple non-parameterized tests ⓘ |
| isCoreConceptOf | NUnit test model ⓘ |
| isDocumentedIn | NUnit official documentation ⓘ |
| isInheritedFrom | System.Attribute NERFINISHED ⓘ |
| isOpenSourceComponentOf | NUnit open source project ⓘ |
| isRecognizedBy | NUnit test discovery mechanism ⓘ |
| isUsedBy |
NUnit GUI runner
NERFINISHED
ⓘ
NUnit console runner NERFINISHED ⓘ NUnit test runner ⓘ NUnit3TestAdapter NERFINISHED ⓘ |
| lifecycle | executed each time the test is run ⓘ |
| partOfFramework | NUnit NERFINISHED ⓘ |
| purpose |
indicate that a method is an executable unit test
ⓘ
mark methods as test methods ⓘ |
| requires |
containing assembly referenced by test runner
ⓘ
method with no generic type parameters (for standard discovery) ⓘ non-abstract method ⓘ public method for standard discovery ⓘ |
| supports | assertion-based verification inside method body ⓘ |
| usedIn | NUnit test fixtures ⓘ |
| usedInLanguage |
.NET languages
NERFINISHED
ⓘ
C# ⓘ |
| usedWith | NUnit.Framework.TestFixtureAttribute NERFINISHED ⓘ |
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.