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

Inheriting from Generic class's nested class fails #290

Open
WaffleSouffle opened this issue Mar 24, 2016 · 1 comment
Open

Inheriting from Generic class's nested class fails #290

WaffleSouffle opened this issue Mar 24, 2016 · 1 comment
Milestone

Comments

@WaffleSouffle
Copy link

WaffleSouffle commented Mar 24, 2016

public class SomeTests
{
internal class Given_non_generic_top
{
internal class Given_nested_non_generic : Given_non_generic_top
{ }
}

    internal class Nested_non_generic_test : Given_non_generic_top
        .Given_nested_non_generic
    {
        // Passes
        It Should_be_ok = () => true.ShouldBeTrue();
    }

    internal class Given_generic_top<T>
    {
        internal class Given_nested_generic : Given_generic_top<T>
        { }
    }

    internal class Top_generic_test : Given_generic_top<int>
    {
        // Passes
        It Should_be_ok = () => true.ShouldBeTrue();
    }

    internal class Nested_generic_test : Given_generic_top<int>
        .Given_nested_generic
    {
        // Fails: The parent fixture of this test experienced a failure during test execution
        It Should_be_ok = () => true.ShouldBeTrue();
    }
}
WaffleSouffle added a commit to WaffleSouffle/machine.specifications that referenced this issue Mar 29, 2016
@WaffleSouffle
Copy link
Author

Fix in Pull Request #291

@ivanz ivanz added the Claimed label Jul 30, 2016
@ivanz ivanz added this to the MSpec 0.11.1 milestone Aug 9, 2016
@robertcoltheart robertcoltheart removed this from the MSpec 0.11.1 milestone Jan 8, 2019
@robertcoltheart robertcoltheart added this to the 2.0.0 milestone Jun 12, 2019
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

3 participants