public void ExcludeNullableValueTypeParameter(
            Type type,
            MethodInfo method,
            ParameterInfo parameter,
            bool expected)
        {
            // Arrange
            IParameterFilter sut = new NotNullableValueType();

            // Act
            bool actual = sut.ExcludeParameter(type, method, parameter);

            // Assert
            Assert.Equal(expected, actual);
        }
Exemple #2
0
        public void ExcludeNullableValueTypeParameter(
            Type type,
            MethodInfo method,
            ParameterInfo parameter,
            bool expected)
        {
            // Arrange
            IParameterFilter sut = new NotNullableValueType();

            // Act
            bool actual = sut.ExcludeParameter(type, method, parameter);

            // Assert
            Assert.Equal(expected, actual);
        }
 public void ReturnName(NotNullableValueType sut)
 {
     Assert.Equal(nameof(NotNullableValueType), sut.Name);
 }
Exemple #4
0
 public void ReturnName(NotNullableValueType sut)
 {
     Assert.Equal(nameof(NotNullableValueType), sut.Name);
 }