コード例 #1
0
        public void HasConstructorWithAttribute_ShouldReturnFalse_IfConfigurationDoesNotHaveConstructorWithAttribute()
        {
            var checker = new IniConstructorChecker();

            var result = checker.HasConstructorWithAttribute(typeof(ImmutableConfiguration));

            result.Should().BeFalse();
        }
コード例 #2
0
        public void HasConstructorWithAttribute_ShouldReturnTrue_IfConfigurationHasConstructorWithAttribute()
        {
            var checker = new IniConstructorChecker();

            var result = checker.HasConstructorWithAttribute(typeof(ImmutableConfigurationWithAttribute));

            result.Should().BeTrue();
        }