Ejemplo n.º 1
0
 /// <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));
 }
Ejemplo n.º 2
0
 public static void AssemblyIsNotOptimized()
 {
     Assert.That(Assembly.Load(new AssemblyName("nunit.testdata")),
                 Has.Attribute <DebuggableAttribute>().With.Property("IsJITOptimizerDisabled").EqualTo(true));
 }