public void TypeAccessorBuilder_BuildGetterFromString()
        {
            var control = new SinglePropertyObject()
            {
                Id = 42
            };
            var experimental = new SinglePropertyObject()
            {
                Id = 42
            };

            var builder = new TypeAccessorBuilder<SinglePropertyObject>();
            var getter = builder.BuildGetter("Id");

            var controlResult = control.Id;
            var experimentalResult = getter(experimental);

            Assert.AreEqual(controlResult, experimentalResult, "Getter should return the value assigned to the property.");
        }
        public void TypeAccessorBuilder_BuildGetterFromStringOnPrivateProperty()
        {
            var experimental = new PrivatePropertyObject("Kyle");

            var builder = new TypeAccessorBuilder<PrivatePropertyObject>();
            var getter = builder.BuildGetter("Name");

            const string controlResult = "Kyle";
            var experimentalResult = getter(experimental);

            Assert.AreEqual(controlResult, experimentalResult, "Getter should return the value assigned to the property.");
        }