Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • I understand when there is data validation, that it makes sense. I just don't get how I can write the code to create a property when I can't think of a valid test for it. Commented May 16, 2012 at 15:28
  • If you insist on writing a test for this, how about something like: obj.setValue(5); assert(5, obj.getValue()) Commented May 16, 2012 at 15:36