public void isExistTest4() { UserVariableAccessor target = new UserVariableAccessor(); string name = "name"; string project = "project"; target.set(name, project, "val"); Assert.AreEqual(true, target.isExist(target.defIndex(name, project))); }
public void getTest2() { UserVariableAccessor target = new UserVariableAccessor(); string name = "name"; string project = "project"; target.set(name, project, "val"); Assert.AreEqual(String.Empty, target.get(target.defIndex(name, project))); }
public void setTest2() { UserVariableAccessor target = new UserVariableAccessor(); string name = "name"; string project = "project"; target.set(name, project, "unevaluated"); Assert.AreEqual(1, target.Definitions.Count()); foreach (string v in target.Definitions) { Assert.AreEqual(v, target.defIndex(name, project)); } }
public void setTest4() { UserVariableAccessor target = new UserVariableAccessor(); string name = "name"; string project = "project"; target.set(name, project, "unevaluated"); Assert.AreEqual(1, target.Variables.Count()); foreach (TUserVariable v in target.Variables) { Assert.AreEqual(v.evaluated, null); Assert.AreEqual(v.ident, target.defIndex(name, project)); Assert.AreEqual(v.persistence, false); Assert.AreEqual(v.prev, new TUserVariable()); Assert.AreEqual(v.status, TUserVariable.StatusType.Unevaluated); Assert.AreEqual(v.unevaluated, "unevaluated"); } }
public void setTest4() { UserVariableAccessor target = new UserVariableAccessor(); string name = "name"; string project = "project"; target.set(name, project, "unevaluated"); Assert.AreEqual(1, target.Variables.Count()); foreach(TUserVariable v in target.Variables) { Assert.AreEqual(v.evaluated, null); Assert.AreEqual(v.ident, target.defIndex(name, project)); Assert.AreEqual(v.persistence, false); Assert.AreEqual(v.prev, new TUserVariable()); Assert.AreEqual(v.status, TUserVariable.StatusType.Unevaluated); Assert.AreEqual(v.unevaluated, "unevaluated"); } }
public void setTest2() { UserVariableAccessor target = new UserVariableAccessor(); string name = "name"; string project = "project"; target.set(name, project, "unevaluated"); Assert.AreEqual(1, target.Definitions.Count()); foreach(string v in target.Definitions) { Assert.AreEqual(v, target.defIndex(name, project)); } }