コード例 #1
0
        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)));
        }
コード例 #2
0
        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)));
        }
コード例 #3
0
        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));
            }
        }
コード例 #4
0
        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");
            }
        }
コード例 #5
0
ファイル: UserVariableTest.cs プロジェクト: 3F/vsCommandEvent
        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");
            }
        }
コード例 #6
0
ファイル: UserVariableTest.cs プロジェクト: 3F/vsCommandEvent
        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));
            }
        }
コード例 #7
0
ファイル: UserVariableTest.cs プロジェクト: 3F/vsCommandEvent
 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)));
 }
コード例 #8
0
ファイル: UserVariableTest.cs プロジェクト: 3F/vsCommandEvent
 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)));
 }