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); }
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); }