예제 #1
0
        public void Test()
        {
            CamBuild.BasicFunctions.DateTime dt = new CamBuild.BasicFunctions.DateTime();

            List<string> args = new List<string>();
            args.Add("yyyy");

            // pray that the year won't change between call to DateTime.Now and our function evaluation :)
            Assert.AreEqual(System.DateTime.Now.Year.ToString(), dt.GetResult(args));
        }
예제 #2
0
        public void Test()
        {
            CamBuild.BasicFunctions.DateTime dt = new CamBuild.BasicFunctions.DateTime();

            List <string> args = new List <string>();

            args.Add("yyyy");

            // pray that the year won't change between call to DateTime.Now and our function evaluation :)
            Assert.AreEqual(System.DateTime.Now.Year.ToString(), dt.GetResult(args));
        }