Exemplo n.º 1
0
        public void Does_enumintconversion_translate()
        {
            var conversion = new EnumConversion {
                Color = Color.Green
            };
            var conversionDto = conversion.TranslateTo <EnumConversionIntDto>();

            Assert.That(conversionDto.Color, Is.EqualTo(1));
        }
Exemplo n.º 2
0
        public void Does_enumstringconversion_translate()
        {
            var conversion = new EnumConversion {
                Color = Color.Blue
            };
            var conversionDto = conversion.TranslateTo <EnumConversionStringDto>();

            Assert.That(conversionDto.Color, Is.EqualTo("Blue"));
        }
Exemplo n.º 3
0
        public void Does_enumintconversion_translate()
        {
            var conversion = new EnumConversion { Color = Color.Green };
            var conversionDto = conversion.TranslateTo<EnumConversionIntDto>();

            Assert.That(conversionDto.Color, Is.EqualTo(1));
        }
Exemplo n.º 4
0
        public void Does_enumstringconversion_translate()
        {
            var conversion = new EnumConversion { Color = Color.Blue };
            var conversionDto = conversion.TranslateTo<EnumConversionStringDto>();

            Assert.That(conversionDto.Color, Is.EqualTo("Blue"));
        }