Example #1
0
            public void ReturnsDefaultValueForValueTypes()
            {
                var propertiesObject = new ObjectWithoutDefaultValues();

                Assert.AreEqual(1, propertiesObject.ValueType);
                Assert.AreEqual(0, propertiesObject.ValueTypeWithoutDefaultValue);
            }
Example #2
0
            public void ReturnsDefaultValueForReferenceTypes()
            {
                var propertiesObject = new ObjectWithoutDefaultValues();

                Assert.AreNotEqual(null, propertiesObject.ReferenceType);
                Assert.AreEqual(null, propertiesObject.ReferenceTypeWithoutDefaultValue);
            }