protected void AssertHasCorrectParamName(ArgumentException e, string expectedParameterName) { e.ThrowIfNull(nameof(e)); Assert.IsNotNull(e.ParamName, TestBaseStringResources.ExpectedPropertyToBeSet(nameof(e.ParamName))); Assert.AreEqual(e.ParamName, expectedParameterName, TestBaseStringResources.ExpectedPropertyToMatch(nameof(e.ParamName), e.ParamName, expectedParameterName)); }
protected void AssertHasNoParamName(ArgumentException e) { e.ThrowIfNull(nameof(e)); Assert.IsNull(e.ParamName, TestBaseStringResources.ExpectedPropertyToBeNotSet(nameof(e.ParamName))); }