Catel.Test.Runtime.Serialization.GenericSerializationFacts.CatelModelAdvancedSerializationFacts.CorrectlyHandlesNullValues C# (CSharp) Method

CorrectlyHandlesNullValues() private method

private CorrectlyHandlesNullValues ( ) : void
return void
            public void CorrectlyHandlesNullValues()
            {
                var testModel = new TestModel();

                testModel.IncludedCatelProperty = null;

                var editableObject = testModel as IEditableObject;
                editableObject.BeginEdit();

                testModel.IncludedCatelProperty = "included";

                editableObject.CancelEdit();

                Assert.IsNull(testModel.IncludedCatelProperty);
            }