Blog.Common.Utils.Tests.Helpers.PropertyReflectionTest.ShouldGetPropertyValueSuccessfullyByRecursion C# (CSharp) Method

ShouldGetPropertyValueSuccessfullyByRecursion() private method

private ShouldGetPropertyValueSuccessfullyByRecursion ( ) : void
return void
        public void ShouldGetPropertyValueSuccessfullyByRecursion()
        {
            var dummyObject = new DummyObjectComplex { Dummy = new DummyObject { Name = "Stars" } };
            var propertyReflection = new PropertyReflection();
            var result = propertyReflection.GetPropertyValue(dummyObject, "Name", true);

            Assert.IsNotNull(result);
            Assert.AreEqual("Stars", result.ToString());
        }