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

Abstract LibGit2Sharp away in testing context #185

Closed
wants to merge 14 commits into from

Conversation

yorah
Copy link
Contributor

@yorah yorah commented Jun 16, 2012

This pull request is related to #138, and is a follow-up of #182.

Changes:

  • An IRepository interface has been introduced.
  • The most commonly used classes have been made mockable.
  • I also added a MockedRepositoryFixture, which shows how to abstract LibGit2sharp in a testing context. If you have a better name for this fixture, please tell!

@haacked @nulltoken Would you please be so kind as to review this PR?

@yorah
Copy link
Contributor Author

yorah commented Jun 17, 2012

@nulltoken I pushed a new version of the PR. Basically, I removed the RepositoryExtensionsFixture, because as Haaced already said in #138, I don't see the point in having tests just for the sake of showing proper isolation of the interfaces.

Shameless quote: I just see it as the product of good design, not as a separate feature that requires tests itself.

Please tell me if you're ok with that, or if you want me to reintroduce RepositoryExtensionsFixture in this PR.

@nulltoken
Copy link
Member

👍 for me. Thanks for this!

@haacked
Copy link
Contributor

haacked commented Jun 18, 2012

Looks good to me. Any reason we don't apply this to all objects from now on?

@tclem
Copy link
Member

tclem commented Jun 18, 2012

Nice @yorah! I'm happy with this too.

@nulltoken
Copy link
Member

Any reason we don't apply this to all objects from now on?

@haacked you're right! I've created #186 to cope with this.

@nulltoken
Copy link
Member

@yorah Merged. Very nice job! ❤️

@nulltoken nulltoken closed this Jun 18, 2012
@haacked
Copy link
Contributor

haacked commented Jun 18, 2012

❤️ thanks everybody!

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

Successfully merging this pull request may close these issues.

None yet

4 participants