public void NullableEnumWhenNotNull() { ReadWriteEnums target = new ReadWriteEnums(); ValueSetter.SetFormattedValue(target, "NullableEnumField", "Bar"); Assert.That(target.NullableEnumField, Is.EqualTo(TestEnum.Bar)); }
public void EnumMethod() { ReadWriteEnums target = new ReadWriteEnums(); ValueSetter.SetFormattedValue(target, "EnumMethod", "Bar"); Assert.That(target.EnumProperty, Is.EqualTo(TestEnum.Bar)); }