public void Does_translate_nullableInt_to_and_from() { var nullable = new IntNullableId(); var nonNullable = nullable.ConvertTo <IntId>(); nonNullable.Id = 10; var expectedNullable = nonNullable.ConvertTo <IntNullableId>(); Assert.That(expectedNullable.Id.Value, Is.EqualTo(nonNullable.Id)); }
public void Does_translate_nullableInt_to_and_from() { var nullable = new IntNullableId(); var nonNullable = nullable.ConvertTo<IntId>(); nonNullable.Id = 10; var expectedNullable = nonNullable.ConvertTo<IntNullableId>(); Assert.That(expectedNullable.Id.Value, Is.EqualTo(nonNullable.Id)); }