Skip to content

Port the interop specs that need C# fixtures (fields, generic interfaces, abstract super, optional-parameter constructors, binding matrices) #144

Closed

Description

@Largo

An audit of the Tests/Interop mspec suite deleted in #119 (the follow-up in #142 ported what built-in .NET types can express) left behaviours it could not check without the C# fixtures the old specs compiled from heredocs. IronRuby.Tests can define C# types itself, as ClrBclTests.cs does, so these are portable. The old specs are in git at c7f70cf4^1:Tests/Interop/net/:

  • Fields: reading and writing internal and private fields, and what private binding (-X:PrivateBinding) exposes (net/fields/access_spec.rb, net/method/invocation/internal_spec.rb).
  • Generic interface methods implemented in Ruby: a Ruby class implementing IFoo<T>.Bar(T) and called from C# (net/interface/, fixtures in net/interface/fixtures/classes.rb).
  • super into an abstract method from a Ruby subclass of an abstract CLR class (net/class/instantiation/abstract_spec.rb).
  • Constructors: a Ruby subclass inheriting a CLR constructor with optional parameters (net/class/fixtures/classes.rb, net/class/derivation/).
  • Regression CP#2949 (net/bcl/regressions_spec.rb).
  • The method binding matrices (net/method/binding/*_spec.rb: class_like, collection, generic, nullable, numeric_and_string, other_concerns): about 800 lines over custom fixtures. They were only sampled, were never ported, and were heavily tagged failing in 2009. Worth porting selectively, starting with the cases tagged failing, to see which now pass.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions