Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create mock class that tracks API calls #7

Open
run4flat opened this issue Jan 19, 2012 · 0 comments
Open

Create mock class that tracks API calls #7

run4flat opened this issue Jan 19, 2012 · 0 comments

Comments

@run4flat
Copy link
Collaborator

Now that the API supports calling drawing functions on subclassed Drawables, I can write a mock class that records when different functions get called, and their parameters. This way, I can write code that uses the PDL API and the standard Prima API and compare the results.

I think the best way to do this is to not record the order of property assignments, but rather to record the state of the object when a drawing operation takes place. This way I'm testing state, not implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant