Kamis, 14 Oktober 2010

TimeSpan.Parse breaking change in .Net Framework 4

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:public DateTime CreateDateWithGivenTime(string time) { var t = TimeSpan.Parse(time); ... }The test was:[Test] [ExpectedException(typeof(OverflowException))] public void

Tidak ada komentar:

Posting Komentar