Skip to content
This repository was archived by the owner on Jun 27, 2019. It is now read-only.

Added extensions methods #2

Merged
merged 6 commits into from
Apr 20, 2015
Merged

Added extensions methods #2

merged 6 commits into from
Apr 20, 2015

Conversation

GeertvanHorrik
Copy link
Contributor

No description provided.

{
var actualValue = input.IsPullRequest();

Assert.AreEqual(expectedValue, actualValue);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm quite a fan of Shouldly for assertions. input.IsPullRequest().ShouldBe(expectedValue) will give quite good error messages.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll give you this one. It's all a matter of preference, to be honest I think nunit provides really good feedback (I expected x, but got y). Not sure how shouldly does it but I'll do it anyway.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldly actually grabs the source code from your code to use in the assertion. It should give better error messages in all cases :)

@GeertvanHorrik
Copy link
Contributor Author

@JakeGinnivan All changes I think should be made are made.

JakeGinnivan added a commit that referenced this pull request Apr 20, 2015
@JakeGinnivan JakeGinnivan merged commit aa313ab into develop Apr 20, 2015
@JakeGinnivan JakeGinnivan deleted the feature/extensionmethods branch April 20, 2015 16:00
@JakeGinnivan
Copy link
Contributor

Nice!

asbjornu added a commit to asbjornu/GitTools.Core that referenced this pull request Apr 20, 2016
Supress CS0414: The private field 'field' is assigned but its value is never used.
Supress CS1701: Assuming assembly reference "Assembly Name GitTools#1" matches "Assembly Name GitTools#2", you may need to supply runtime policy.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants