AjRools.Expert.Tests.Compiler.ParserTests.ParseSimpleRuleFileWithIsNotCondition C# (CSharp) Method

ParseSimpleRuleFileWithIsNotCondition() private method

private ParseSimpleRuleFileWithIsNotCondition ( ) : void
return void
        public void ParseSimpleRuleFileWithIsNotCondition()
        {
            Parser parser = new Parser(new StreamReader("SimpleRuleWithIsNotCondition.txt"));

            Rule rule = parser.ParseRule();

            Assert.IsNotNull(rule);

            Assert.IsTrue(rule.Conditions.Contains(new IsNotFact("Temperature", 39)));
            Assert.IsTrue(rule.Assertions.Contains(new IsFact("HasFever", true)));

            Assert.IsNull(parser.ParseRule());
        }