public void Initialization_Defaults()
        {
            var declaration = new GenericParameterDeclaration("name");

            Assert.That(declaration.Attributes, Is.EqualTo(GenericParameterAttributes.None));
            Assert.That(declaration.ConstraintProvider(null), Is.Empty);
        }
 public static void CheckGenericParameter(
     GenericParameterDeclaration genericParameter,
     GenericParameterContext genericParameterContext,
     string expectedName,
     GenericParameterAttributes expectedAttributes,
     params Type[] expectedConstraints)
 {
     Assert.That(genericParameter, Is.Not.Null);
     Assert.That(genericParameter.Name, Is.EqualTo(expectedName));
     Assert.That(genericParameter.Attributes, Is.EqualTo(expectedAttributes));
     Assert.That(genericParameter.ConstraintProvider(genericParameterContext), Is.EqualTo(expectedConstraints));
 }