示例#1
0
        public void ConvertTo_HasCustomConverter()
        {
            var target = new TestEnumTypeConverter();
            var actual = target.ConvertTo(SimpleEnum.Third, typeof(string));

            actual.Should().Be("Three");
        }
示例#2
0
        public void ConvertFrom_HasCustomConversion()
        {
            var target = new TestEnumTypeConverter();
            var actual = target.ConvertFrom("Two");

            actual.Should().Be(SimpleEnum.Second);
        }