public void ShouldGetSixProblemsWithConfigFile()
        {
            Configuration configuration = ConfigurationLoader.LoadConfiguration("BindingNotSupportedSession.config", "TestConfigs");
            ContractBindingNotSupportedSession rule = new ContractBindingNotSupportedSession();
            rule.Check(configuration);
            using (ModuleNode module = ModuleNode.GetModule(
                typeof(ContractBindingNotSupportedSessionFixture).Assembly.Location, true, true, true))
            {
                rule.Check(module);
            }

            Assert.AreEqual(6, rule.Problems.Count);
        }
Exemplo n.º 2
0
        public void ShouldGetSixProblemsWithConfigFile()
        {
            Configuration configuration             = ConfigurationLoader.LoadConfiguration("BindingNotSupportedSession.config", "TestConfigs");
            ContractBindingNotSupportedSession rule = new ContractBindingNotSupportedSession();

            rule.Check(configuration);
            using (ModuleNode module = ModuleNode.GetModule(
                       typeof(ContractBindingNotSupportedSessionFixture).Assembly.Location, true, true, true))
            {
                rule.Check(module);
            }

            Assert.AreEqual(6, rule.Problems.Count);
        }