Skip to content

Instantly share code, notes, and snippets.

@joelhooks
Created June 27, 2011 21:03
Show Gist options
  • Save joelhooks/1049834 to your computer and use it in GitHub Desktop.
Save joelhooks/1049834 to your computer and use it in GitHub Desktop.
MatcherFunction
[Test]
public function toParamObject_returnsGenericObjectWithCorrectPropertyValues_objectIsEqual():void
{
var paramObject:Object;
var task:Task = new Task("testTask");
task.description = "task description";
task.statusId = 1;
task.taskId = 1;
paramObject = task.toParamObject();
assertThat(task, hasProperties(paramObject));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment