public void GetValidatedTypeShouldReturnTheCorrectGenericTypeForABuilderType(BuilderValidatedTypeProvider sut)
 {
     Assert.That(() => sut.GetValidatedType(typeof(ValidatedObjectValidator)), Is.EqualTo(typeof(ValidatedObject)));
 }
 public void GetValidatedTypeShouldThrowIfBuilderTypeDoesNotImplementBuilderInterface(BuilderValidatedTypeProvider sut)
 {
     Assert.That(() => sut.GetValidatedType(typeof(object)), Throws.ArgumentException);
 }
 public void GetValidatedTypeShouldThrowIfBuilderTypeBuildsAmbiguousValidator(BuilderValidatedTypeProvider sut)
 {
     Assert.That(() => sut.GetValidatedType(typeof(MultiTypeValidator)), Throws.ArgumentException);
 }
 public void GetValidatedTypeShouldThrowIfBuilderTypeIsNull(BuilderValidatedTypeProvider sut)
 {
     Assert.That(() => sut.GetValidatedType(null), Throws.ArgumentNullException);
 }