Пример #1
0
        public void Does_Enumconversion_translate()
        {
            var conversion = new NullableEnumConversion {
                Color = Color.Green
            };
            var conversionDto = conversion.ConvertTo <EnumConversionDto>();

            Assert.That(conversionDto.Color, Is.EqualTo(OtherColor.Green));
        }
Пример #2
0
        public void Does_Enumconversion_translate()
        {
            var conversion = new NullableEnumConversion { Color = Color.Green };
            var conversionDto = conversion.ConvertTo<EnumConversionDto>();

            Assert.That(conversionDto.Color, Is.EqualTo(OtherColor.Green));
        }