public void AppliesTo_TypeInSubordinateNamespace_ReturnsFalse()
        {
            // Arrange
            var sut = new ExactNamespaceTypeExclusion("System");

            // Act
            var result = sut.AppliesTo(typeof(System.Collections.Generic.List<string>));

            // Assert
            Assert.False(result);
        }
示例#2
0
        public void AppliesTo_TypeInExactNamespace_ReturnsTrue()
        {
            // Arrange
            var sut = new ExactNamespaceTypeExclusion("System");

            // Act
            var result = sut.AppliesTo(typeof(System.Int32));

            // Assert
            Assert.True(result);
        }
        public void AppliesTo_TypeInExactNamespace_ReturnsTrue()
        {
            // Arrange
            var sut = new ExactNamespaceTypeExclusion("System");

            // Act
            var result = sut.AppliesTo(typeof(System.Int32));

            // Assert
            Assert.True(result);
        }
示例#4
0
        public void AppliesTo_TypeInSubordinateNamespace_ReturnsFalse()
        {
            // Arrange
            var sut = new ExactNamespaceTypeExclusion("System");

            // Act
            var result = sut.AppliesTo(typeof(System.Collections.Generic.List <string>));

            // Assert
            Assert.False(result);
        }