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

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

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