public void SupportsInheritedClasses() { var myClassInheritor = new MyClassInheritor(); new SequentialPropertyNamer(reflectionUtil, new BuilderSettings()).SetValuesOf(myClassInheritor); Assert.That(myClassInheritor.Int, Is.EqualTo(1)); Assert.That(myClassInheritor.AnotherProperty, Is.EqualTo(1)); }
public void SupportsInheritedClasses() { var myClassInheritor = new MyClassInheritor(); new SequentialPropertyNamer(reflectionUtil, new BuilderSettings()).SetValuesOf(myClassInheritor); myClassInheritor.Int.ShouldBe(1); myClassInheritor.AnotherProperty.ShouldBe(1); }