/// <summary> /// Returns a new AttributeConstraint checking for the /// presence of a particular attribute on an object. /// </summary> public ResolvableConstraintExpression Attribute(Type expectedType) { return(Has.Attribute(expectedType)); }
public static void AssemblyIsNotOptimized() { Assert.That(Assembly.Load(new AssemblyName("nunit.testdata")), Has.Attribute <DebuggableAttribute>().With.Property("IsJITOptimizerDisabled").EqualTo(true)); }