DCSIMG
.Net framework 4 - YsA.Net

Browse by Tags

All Tags » .Net framework 4 (RSS)
This week my team upgraded our solutions to Visual Studio 2010 and .Net framework 4. When we ran the tests of one our projects, one of our tests failed with a weird reason. The code is simple:   1: public DateTime CreateDateWithGivenTime( string time) 2: { 3: var t = TimeSpan.Parse(time); 4: ... 5: } The test was: 1: [Test] 2: [ExpectedException( typeof (OverflowException))] 3: public void CreateDateWithGivenTime_HoursNotInRange_ThrowOverflowException() 4: { 5: CreateDateWithGivenTime( "77...