Select Case statments that reference types other than
boolean (go figure this is what they are made for) are
broken by the ncover fixtures. Here is a work around:
[VBInstrumenter.cs] Change Line 230 FROM:
return match.Groups[1] + code + " AndAlso " +
point.InsertCoverageCode() + comment;
TO:
return match.Groups[1] + code + " \n " +
point.InsertCoverageCode() + comment;
It simply puts the instrument on the next line ;)
The problem with AndAlso is that it forces the CASE to
become a boolean expression. If you are testing a string
or other type you recieve a CAST exception.
My version of the file