container
container copied to clipboard
Fix ParameterBase.Equals(Type type) throwing on 'null'
Description
The Equals() method should never throw an exception. It should simply return true or false
To Reproduce
[DataTestMethod]
[ExpectedException(typeof(ArgumentNullException))]
[DynamicData(nameof(GetSupportedParametersData), DynamicDataSourceType.Method)]
public void EqualsValidationTest(ParameterValue parameter)
{
Assert.IsTrue(parameter.Equals(null));
}