コード例 #1
0
ファイル: DateTimeTest.cs プロジェクト: almx/CamBuild
        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));
        }