-
Notifications
You must be signed in to change notification settings - Fork 157
AttributeConstraint
jnm2 edited this page Mar 18, 2017
·
4 revisions
AttributeConstraint tests for the existence of an attribute on a Type and then applies a constraint to that attribute.
AttributeConstraint(Type type, IConstraint baseConstraint)
Has.Attribute( typeof(TestFixtureAttribute) )...
Has.Attribute<TestFixtureAttribute>()...
Assert.That( someObject, Has.Attribute( typeof(TestFixtureAttribute) )
.Property("Description").EqualTo("My description") );
Assert.That( someObject, Has.Attribute<TestFixtureAttribute>()
.Property("Description").EqualTo("My description") );
Copyright (c) 2018 The NUnit Project - Licensed under CC BY-NC-SA 4.0
-
NUnit
-
Release Notes
-
License
- Getting Started
- Writing Tests
- Running Tests
- Extending NUnit
- Technical Notes
-
Release Notes
- NUnit Xamarin Runners
- VS Test Adapter
- VS Test Generator
- NUnit Analyzers