示例#1
0
        public void GetVariableNames_CollectionIsReadOnly()
        {
            var compiler = new EquationCompiler("a+b+c");

            Assert.IsTrue(compiler.GetVariableNames().IsReadOnly);
        }
示例#2
0
        public void GetVariableNames()
        {
            var compiler = new EquationCompiler("a+b+c");

            CollectionAssert.AreEquivalent(new string[] { "a", "b", "c" }, compiler.GetVariableNames());
        }