SHARE
TWEET

Untitled

a guest Oct 8th, 2012 323 Never
  1.             var resultOne = controller.FirstDateOfWeek(2012, 41);
  2.             var resultSecond = controller.FirstDateOfWeek(2016, 20);
  3.             var resultThird = controller.FirstDateOfWeek(2015, 3);
  4.             var resultFourth = controller.FirstDateOfWeek(1992, 52);
  5.  
  6.             Assert.AreEqual(new DateTime(2012, 10, 8), resultOne);
  7.             Assert.AreEqual(new DateTime(2016, 5, 16), resultSecond);
  8.             Assert.AreEqual(new DateTime(2015, 1, 12), resultThird);
  9.             Assert.AreEqual(new DateTime(1992, 12, 21), resultFourth);
RAW Paste Data
Top