AjRools.Expert.Tests.TwoRulesTests.Setup C# (CSharp) Method

Setup() private method

private Setup ( ) : void
return 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);
        }