public void GetVariableNames_CollectionIsReadOnly() { var compiler = new EquationCompiler("a+b+c"); Assert.IsTrue(compiler.GetVariableNames().IsReadOnly); }
public void GetVariableNames() { var compiler = new EquationCompiler("a+b+c"); CollectionAssert.AreEquivalent(new string[] { "a", "b", "c" }, compiler.GetVariableNames()); }