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

Added support for Action delegates in TestCase class #17

Merged
merged 5 commits into from
Mar 17, 2014
Merged

Added support for Action delegates in TestCase class #17

merged 5 commits into from
Mar 17, 2014

Conversation

moodmosaic
Copy link
Contributor

This could probably address #16.

Please notice that, in the files changed, I didn't have to return a different ITestCommand instance as suggested in the description.

The following tests passed by only adapting Action to Action<object> in the TestCase class:

[FirstClassTests]
public static IEnumerable<ITestCase> YieldFirstClassTests()
{
    yield return new TestCase(() => Assert.Equal(1, 1));
    yield return new TestCase(() => Assert.Equal(2, 2));
    yield return new TestCase(() => Assert.Equal(3, 3));
}

@ploeh ploeh merged commit f787981 into GreanTech:master Mar 17, 2014
@ploeh
Copy link
Contributor

ploeh commented Mar 17, 2014

Thank you for your contribution! It's now live as Exude 0.2.0.

@moodmosaic moodmosaic deleted the testcase-adapting-action branch March 17, 2014 08:42
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.

2 participants