public void TestRegExAnnotationIgnoredForNonStringsProperty()
        {
            var property = FindProperty(typeof(Customer3), "NumberOfOrders");

            facetFactory.Process(Reflector, property, MethodRemover, Specification);
            Assert.IsNull(Specification.GetFacet(typeof(IRegExFacet)));
        }
Exemplo n.º 2
0
        public void TestRegExAnnotationIgnoredForNonStringsProperty()
        {
            IImmutableDictionary <string, ITypeSpecBuilder> metamodel = new Dictionary <string, ITypeSpecBuilder>().ToImmutableDictionary();

            PropertyInfo property = FindProperty(typeof(Customer3), "NumberOfOrders");

            metamodel = facetFactory.Process(Reflector, property, MethodRemover, Specification, metamodel);
            Assert.IsNull(Specification.GetFacet(typeof(IRegExFacet)));
            Assert.IsNotNull(metamodel);
        }