public void msr_validator_returns_false_when_msr_doesnt_match() { PartAttributesHeader header = Xpo.CreateXPObject <PartAttributesHeader>(); PartAttributeValues values = Xpo.CreateXPObject <PartAttributeValues>(); header.Attr1 = "ASR"; values.Header = header; values.Attr1 = "A00,A01,A02"; IValidator validator = StepResultValidatorFactory.CreateValidator(StepResultValidationType.MinimumShippableRevision, values, "wr0ng"); Assert.IsFalse(validator.Validated()); }
public void firmware_validator_returns_false_when_the_firmware_doesnt_match() { PartAttributesHeader header = Xpo.CreateXPObject <PartAttributesHeader>(); PartAttributeValues values = Xpo.CreateXPObject <PartAttributeValues>(); header.Attr1 = "Firmware"; values.Header = header; values.Attr1 = "E36X"; IValidator validator = StepResultValidatorFactory.CreateValidator(StepResultValidationType.Firmware, values, "wr0ng"); Assert.IsFalse(validator.Validated()); }