public void ShouldMapAMatchingStringOnToAnEnum() { var source = new PublicField <string> { Value = Mrs.ToString() }; var result = Mapper.Map(source).OnTo(new PublicProperty <Title>()); result.Value.ShouldBe(Mrs); }
public void ShouldMapAMatchingStringOnToARootEnum() { var result = Mapper.Map(Mrs.ToString()).ToANew <Title>(); result.ShouldBe(Mrs); }