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