コード例 #1
0
        public void RemoveMinutesShouldByEqualsTrue()
        {
            //Output 04/03/2010 16:12
            datetime = DateTime.Parse("04/03/2010 17:00");
            string microsoft_result = datetime.AddMinutes(-48).ToString("dd/MM/yyyy HH:mm");
            string new_datetime     = my_datetime.SubtractMinutes("04/03/2010 17:00", 48);
            string my_result        = my_datetime.Format(new_datetime, 1);

            Assert.AreEqual(microsoft_result, my_result);
        }