示例#1
0
        public void IsEqualByRuleTest1()
        {
            var target = new ConfigItem("Debug", "Any CPU");

            Assert.True(target.IsEqualByRule("Debug", "Any CPU", false));
            Assert.False(target.IsEqualByRule("debug", "Any CPU", false));

            Assert.True(target.IsEqualByRule("Debug", "AnyCPU", false));
            Assert.False(target.IsEqualByRule("Debug", "Anycpu", false));

            Assert.True(target.IsEqualByRule("Debug", "Anycpu", true));

            Assert.False(target.IsEqualByRule(null, null, false));
            Assert.False(target.IsEqualByRule(null, null, true));
        }