Ejemplo n.º 1
0
        public void MappingDummyProvider(IMapping map)
        {
            var providers = map.GetFieldsWithProviders;
            var result    = map.Dummy("Text", 30);
            var provider  = providers.FirstOrDefault();

            Assert.Equal(map, result);
            Assert.Equal("Text", provider.Key);
            Assert.Equal(ProviderType.DummyText, provider.Value.Type);
            Assert.Equal(typeof(string), provider.Value.TType);
            Assert.Equal(30, ((DummyTextProvider)provider.Value).MaxLength);
        }