public void AllVarsInitialised()
        {
            var variableAnalyser = new DuplicateVariableAnalyser();

            variableAnalyser.Analyse(_simpleFormWithConditional);

            var onlyIdentifiedVarsAnalyser = new OnlyInitialisedVarsAnalyser();
            var result = onlyIdentifiedVarsAnalyser.Analyse(_simpleFormWithConditional);

            Assert.IsTrue(result);
            Assert.AreEqual(0, Analyser.GetErrors().Count);
        }
        public void NotAllVarsInitialisedInComputed()
        {
            var variableAnalyser = new DuplicateVariableAnalyser();

            variableAnalyser.Analyse(_simpleFormWithComputedNode);

            var onlyIdentifiedVarsAnalyser = new OnlyInitialisedVarsAnalyser();
            var result = onlyIdentifiedVarsAnalyser.Analyse(_simpleFormWithComputedNode);

            Assert.IsFalse(result);
            Assert.AreEqual(1, Analyser.GetErrors().Count);
            Assert.AreEqual("[QL] ERROR [1,224] Unknown identifier 'notInitialisedVar' in statement", Analyser.GetErrors()[0]);
        }