public void GuidIsValid() { var model = new GuidModel() { Value = Guid.NewGuid() }; ExtendedValidator.EnsureIsValid(model); }
public void StringToGuid(GuidModel sampleData) { Assert.Equal(sampleData.Expected, sampleData.Actual.ToGuid()); }
public void GuidIsNotValid() { var model = new GuidModel() { Value = default(Guid) }; Assert.Throws<AggregateValidationException>(() => ExtendedValidator.EnsureIsValid(model)); }