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)); }
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)); }