public void CheckThatGetAnnotatedLengthReturnsCorrectValues() { Sample s = new Sample(); Assert.Equal(10, s.GetAnnotatedLength(nameof(s.StringProperty))); Assert.Equal(int.MaxValue, s.GetAnnotatedLength(nameof(s.BigStringProperty))); }