Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
        protected void AssertHasNoParamName(ArgumentException e)
        {
            e.ThrowIfNull(nameof(e));

            Assert.IsNull(e.ParamName, TestBaseStringResources.ExpectedPropertyToBeNotSet(nameof(e.ParamName)));
        }