コード例 #1
0
        public void GetValidatorShouldReturnACorrectlyTypedGenericValidator([Frozen, AutofixtureServices] IServiceProvider resolver,
                                                                            ValidatorFromManifestFactory sut,
                                                                            [ManifestModel] ValidationManifest manifest)
        {
            manifest.ValidatedType = typeof(string);

            Assert.That(() => sut.GetValidator(manifest), Is.InstanceOf <Validator <string> >());
        }
コード例 #2
0
 public void GetValidatorShouldThrowAneIfTheManifestIsNull(ValidatorFromManifestFactory sut)
 {
     Assert.That(() => sut.GetValidator(null), Throws.ArgumentNullException);
 }