Esempio n. 1
0
        public void TestInterpolationForBadKey(string interpolationKey)
        {
            //
            var utility = new StringDateInterpolationUtility();

            //
            TestDelegate testDelegate = () => utility.Interpolate(interpolationKey, DateTime.MinValue, null);

            //
            Assert.Throws <ArgumentException>(testDelegate);
        }
Esempio n. 2
0
        public string TestInterpolate(string interpolationKey, DateTime datetime, string rawString)
        {
            //
            var utility = new StringDateInterpolationUtility();

            //
            var result = utility.Interpolate(interpolationKey, datetime, rawString);

            //
            return(result);
        }