예제 #1
0
        public void TestInterpolationForBadKey(string interpolationKey)
        {
            //
            var utility = new StringDateInterpolationUtility();

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

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

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

            //
            return(result);
        }