public void Constraint_ShouldIncludeOverriddenRequiredMetadata() { var expectations = Expectations.GetRequiredMetadataWithEmpty(); foreach (var e in expectations) { var definition = new DerivedContractBasedImportDefinition("ContractName", e); ConstraintAssert.Contains(definition.Constraint, "ContractName", e); } }
public void Constraint_ShouldIncludeRequiredMetadataProperty() { var expectations = Expectations.GetRequiredMetadataWithEmpty(); foreach (var e in expectations) { var definition = new ContractBasedImportDefinition("ContractName", (string)null, e, ImportCardinality.ExactlyOne, true, false, CreationPolicy.Any); ConstraintAssert.Contains(definition.Constraint, "ContractName", e); } }
public void Constraint_ShouldIncludeOverriddenContractNameProperty() { var expectations = Expectations.GetContractNames(); foreach (var e in expectations) { var definition = new DerivedContractBasedImportDefinition(e); ConstraintAssert.Contains(definition.Constraint, e); } }
public void Constraint_ShouldIncludeContractNameProperty() { var expectations = Expectations.GetContractNames(); foreach (var e in expectations) { var definition = new ContractBasedImportDefinition(e, (string)null, (IEnumerable <KeyValuePair <string, Type> >)null, ImportCardinality.ExactlyOne, true, false, CreationPolicy.Any); ConstraintAssert.Contains(definition.Constraint, e); } }