public void ExcludeCompilerGeneratedMethods(Type type, bool expected)
        {
            // Arrange
            ConstructorInfo constructor = type.GetConstructor(Type.EmptyTypes);
            IMethodFilter sut = new NotCompilerGenerated();

            // Act
            bool actual = sut.ExcludeMethod(type, constructor);

            // Assert
            Assert.Equal(expected, actual);
        }
Пример #2
0
        public void ExcludeCompilerGeneratedMethods(Type type, bool expected)
        {
            // Arrange
            ConstructorInfo constructor = type.GetConstructor(Type.EmptyTypes);
            IMethodFilter   sut         = new NotCompilerGenerated();

            // Act
            bool actual = sut.ExcludeMethod(type, constructor);

            // Assert
            Assert.Equal(expected, actual);
        }