Skip to content

Inheriting from Generic class's nested class fails #290

Open

Description

@WaffleSouffle

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();
    }
}

Activity

  1. added a commit that references this issue on Mar 29, 2016
    1c15b9c
  2. WaffleSouffle commented on Mar 29, 2016

    @WaffleSouffle
    Author

    Fix in Pull Request #291

  3. added this to the milestone on Aug 9, 2016
  4. removed this from the milestone on Jan 8, 2019
  5. added this to the 2.0.0 milestone on Jun 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions