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

Fix ParameterOverrides.OnType(Type targetType) #203

Open
ENikS opened this issue Jun 5, 2020 · 0 comments
Open

Fix ParameterOverrides.OnType(Type targetType) #203

ENikS opened this issue Jun 5, 2020 · 0 comments
Assignees

Comments

@ENikS
Copy link
Contributor

ENikS commented Jun 5, 2020

Description

The method OnType(Type targetType) creates an array of parameter overrides targeted to specific type. The method does not return proper array.

To Reproduce

[TestMethod]
public void SomeDescriptiveName()
{
  var parameters = new ParameterOverrides
  {
    { Name, TestValue },
    { Name, TestValue }
  };

  Assert.AreEqual(parameters.OnType(typeof(Type)), parameters.OnType<Type>());
}
@ENikS ENikS self-assigned this Jun 5, 2020
@ENikS ENikS transferred this issue from unitycontainer/abstractions Sep 26, 2020
@ENikS ENikS transferred this issue from unitycontainer/container Mar 12, 2023
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

No branches or pull requests

1 participant