Skip to content

Fix ParameterOverrides.OnType(Type targetType) #203

Open
@ENikS

Description

@ENikS

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

Metadata

Metadata

Assignees

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