Exemple #1
0
        public void NullableEnumWhenNotNull()
        {
            ReadWriteEnums target = new ReadWriteEnums();

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

            ValueSetter.SetFormattedValue(target, "EnumMethod", "Bar");
            Assert.That(target.EnumProperty, Is.EqualTo(TestEnum.Bar));
        }