AjRools.Expert.Tests.TwoRulesTests.Setup C# (CSharp) Méthode

Setup() private méthode

private Setup ( ) : void
Résultat void
        public void Setup()
        {
            this.world = new World();
            this.hasfever = new IsFact("HasFever", true);

            Parser parser = new Parser(new StreamReader("TwoRules.txt"));

            foreach (var rule in parser.ParseRules())
                this.world.AddRule(rule);
        }