Ejemplo n.º 1
0
        public void can_copy_name_ending_in_id_to_name_without_id_enum()
        {
            var input = new SingleId <int> {
                ValueId = 1
            };
            var output = input.Copy <SingleId <int>, SingleProp <TestEnum> >();

            Assert.AreEqual(TestEnum.Something, output.Value);
        }
Ejemplo n.º 2
0
        public void can_copy_nullable_name_ending_in_id_to_name_without_id()
        {
            var input = new SingleId <int?> {
                ValueId = 1
            };
            var output = input.Copy <SingleId <int?>, SingleProp <int> >();

            Assert.AreEqual(1, output.Value);
        }