예제 #1
0
        public void SetValuesOf_GetOnlyProperty_PropertyIsNotSet()
        {
            var myClass = new MyClassWithGetOnlyPropertySpy();

            propertyNamer.SetValuesOf(myClass);

            Assert.That(myClass.IsSet, Is.False);
        }
예제 #2
0
        public void SetValuesOf_GetOnlyProperty_PropertyIsNotSet()
        {
            var myClass = new MyClassWithGetOnlyPropertySpy();

            propertyNamer.SetValuesOf(myClass);

            myClass.IsSet.ShouldBeFalse();
        }
        public void SetValuesOfAllIn_ListOfTypeWithPrivateSetOnlyProperty_ValueIsNotSet()
        {
            var privateSetOnlyType = new MyClassWithGetOnlyPropertySpy();

            propertyNamer.SetValuesOfAllIn(new List <MyClassWithGetOnlyPropertySpy> {
                privateSetOnlyType
            });

            Assert.That(privateSetOnlyType.IsSet, Is.False);
        }