Friday, 15 May 2015

fluent assertions - FluentAssertions compile error after upgrade -



fluent assertions - FluentAssertions compile error after upgrade -

i have upgraded project latest fluentassertions , got weird compilation error on next line:

myarray.should().equal(new int[] { 0, 0, 1, 2, 3, 4, 5 });

the error is:

'system.array' not contain definition 'should' , no extension method 'should' accepting first argument of type 'system.array' found (are missing using directive or assembly reference?)

the minimum .net runtime supported fa v3.0 .net 4.0.3 (which .net 4.0 update 2). in other words, need re-target unit test project .net 4.0.3. if using visual studio 2013, have .net 4.5 installed , framework supersedes 4.0.3.

fluent-assertions

No comments:

Post a Comment