public void Test_CanResetValue_WhenNotDirty_ShouldReturnFalse()
        {
            //---------------Set up test pack-------------------
            var propertyInfo   = typeof(FakeBO).GetProperty("FakeBOName");
            var propDescriptor = new PropertyDescriptorPropInfo(propertyInfo);
            //---------------Assert Precondition----------------

            //---------------Execute Test ----------------------
            var canResetValue = propDescriptor.CanResetValue(new FakeBO());

            //---------------Test Result -----------------------
            Assert.IsFalse(canResetValue);
        }
        public void Test_CanResetValue_When_ShouldReturnTrue()
        {
            //---------------Set up test pack-------------------
            var propertyInfo   = typeof(FakeBO).GetProperty("FakeBOName");
            var propDescriptor = new PropertyDescriptorPropInfo(propertyInfo);
            //---------------Assert Precondition----------------

            //---------------Execute Test ----------------------
            var fakeBO = new FakeBO {
                FakeBOName = RandomValueGen.GetRandomString()
            };
            var canResetValue = propDescriptor.CanResetValue(fakeBO);

            //---------------Test Result -----------------------
            Assert.IsFalse(canResetValue);
        }
        public void Test_CanResetValue_When_ShouldReturnTrue()
        {
            //---------------Set up test pack-------------------
            var propertyInfo = typeof(FakeBO).GetProperty("FakeBOName");
            var propDescriptor = new PropertyDescriptorPropInfo(propertyInfo);
            //---------------Assert Precondition----------------

            //---------------Execute Test ----------------------
            var fakeBO = new FakeBO { FakeBOName = RandomValueGen.GetRandomString() };
            var canResetValue = propDescriptor.CanResetValue(fakeBO);
            //---------------Test Result -----------------------
            Assert.IsFalse(canResetValue);
        }
        public void Test_CanResetValue_WhenNotDirty_ShouldReturnFalse()
        {
            //---------------Set up test pack-------------------
            var propertyInfo = typeof(FakeBO).GetProperty("FakeBOName");
            var propDescriptor = new PropertyDescriptorPropInfo(propertyInfo);
            //---------------Assert Precondition----------------

            //---------------Execute Test ----------------------
            var canResetValue = propDescriptor.CanResetValue(new FakeBO());
            //---------------Test Result -----------------------
            Assert.IsFalse(canResetValue);
        }