public void TestRegExAnnotationIgnoredForNonStringsProperty() { var property = FindProperty(typeof(Customer3), "NumberOfOrders"); facetFactory.Process(Reflector, property, MethodRemover, Specification); Assert.IsNull(Specification.GetFacet(typeof(IRegExFacet))); }
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); }