public void VerifyThatParameterWithEmptyArrayValueSetHasError() { var valueset = new ParameterValueSet(Guid.NewGuid(), null, null); this.scalarParameter.ValueSet.Add(valueset); valueset.ValidatePoco(); this.scalarParameter.ValidatePoco(); Assert.IsNotEmpty(this.scalarParameter.ValidationErrors); }
public void VerifyThatParameterHasNoError() { var valueset = new ParameterValueSet(Guid.NewGuid(), null, null); var data = new List <string> { "-" }; valueset.Manual = new ValueArray <string>(data); valueset.Computed = new ValueArray <string>(data); valueset.Reference = new ValueArray <string>(data); valueset.Published = new ValueArray <string>(data); valueset.Formula = new ValueArray <string>(data); this.scalarParameter.ValueSet.Add(valueset); valueset.ValidatePoco(); this.scalarParameter.ValidatePoco(); Assert.IsEmpty(this.scalarParameter.ValidationErrors); }