public void Can_not_set_a_readonly_property()
        {
            var sut = new FakeObjectBuilder();

            Assert.Throws <CanNotBuildException <FakeObjectBuilder> >(() =>
                                                                      sut.With(x => x.ReadOnlyInt, 50).Build()
                                                                      );
        }
        public void Can_set_property_of_an_object()
        {
            var expectedValue = "ExpectedValue";
            var sut           = new FakeObjectBuilder();

            sut.With(x => x.String, expectedValue);
            Assert.Equal(expectedValue, sut.Build().String);
        }
        public void Can_set_property_via_private_setter_of_an_object()
        {
            var expectedValue = 6587954L;
            var sut           = new FakeObjectBuilder();

            sut.With(x => x.PrivateSetterInt64, expectedValue);
            Assert.Equal(expectedValue, sut.Build().PrivateSetterInt64);
        }