public void Constructor_OutOfRangeValueAsCreationPolicyArgument_ShouldSetCreationPolicy() { // Attributes should not throw exceptions var expectations = Expectations.GetInvalidEnumValues <CreationPolicy>(); foreach (var e in expectations) { var attribute = new PartCreationPolicyAttribute(e); Assert.AreEqual(e, attribute.CreationPolicy); } }
public void Constructor_ShouldSetCreationPolicyToGivenValue() { var expectations = Expectations.GetEnumValues <CreationPolicy>(); foreach (var e in expectations) { var attribute = new PartCreationPolicyAttribute(e); Assert.AreEqual(e, attribute.CreationPolicy); } }
public void Constructor_ShouldSetCreationPolicyToGivenValue() { var expectations = Expectations.GetEnumValues<CreationPolicy>(); foreach (var e in expectations) { var attribute = new PartCreationPolicyAttribute(e); Assert.AreEqual(e, attribute.CreationPolicy); } }
public void Constructor_OutOfRangeValueAsCreationPolicyArgument_ShouldSetCreationPolicy() { // Attributes should not throw exceptions var expectations = Expectations.GetInvalidEnumValues<CreationPolicy>(); foreach (var e in expectations) { var attribute = new PartCreationPolicyAttribute(e); Assert.AreEqual(e, attribute.CreationPolicy); } }