Beispiel #1
0
        public void ShouldMapAMatchingStringOnToAnEnum()
        {
            var source = new PublicField <string> {
                Value = Mrs.ToString()
            };
            var result = Mapper.Map(source).OnTo(new PublicProperty <Title>());

            result.Value.ShouldBe(Mrs);
        }
Beispiel #2
0
        public void ShouldMapAMatchingStringOnToARootEnum()
        {
            var result = Mapper.Map(Mrs.ToString()).ToANew <Title>();

            result.ShouldBe(Mrs);
        }