Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 8th, 2012  |  syntax: C#  |  size: 0.54 KB  |  views: 149  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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);