public void ReturnsDefaultValueForValueTypes() { var propertiesObject = new ObjectWithoutDefaultValues(); Assert.AreEqual(1, propertiesObject.ValueType); Assert.AreEqual(0, propertiesObject.ValueTypeWithoutDefaultValue); }
public void ReturnsDefaultValueForReferenceTypes() { var propertiesObject = new ObjectWithoutDefaultValues(); Assert.AreNotEqual(null, propertiesObject.ReferenceType); Assert.AreEqual(null, propertiesObject.ReferenceTypeWithoutDefaultValue); }