public void MakeEmptyStringsNull_ObjectContainsNullNestedObject_DoesNotThrowException()
        {
            var complexObject = new ComplexObject
            {
                InnerObject = null
            };

            var exception = Record.Exception(() => complexObject.MakeEmptyStringsNull());

            Assert.Null(exception);           
        }
        public void MakeEmptyStringsNull_ObjectContainsEmptyStringInNestedObject_ConvertsToNull()
        {
            var complexObject = new ComplexObject
            {
                InnerObject = new SimpleObject
                {
                    MyString = string.Empty
                }
            };

            var result = complexObject.MakeEmptyStringsNull();

            Assert.Null(result.InnerObject.MyString);
        }