Example #1
0
        public void Convert_DateTime_FormattedString()
        {
            AthleteProfileViewModel athlete = new AthleteProfileViewModel();
            var    date1 = new DateTime(2008, 5, 1, 8, 30, 52);
            string test  = athlete.ConvertToDate(date1);

            string expected = "05-01-2008";

            Assert.That(test, Is.EqualTo(expected));
        }