I like the new "errors gutter" (although I can't figure out placement of the
colored bars) and I've been cruising my code to see what it finds (quite a
bit actually). I did run into a warning that I can't seem to eliminate. I
have a unit test (called by NUnit) similar to:
public void IndexerTestNegative()
String junk = myCustomCollection[-1].MyProperty ; *** WARNING
Assert.Fail( ) ;
The warning is "Local variable 'junk' is declared but never used". However,
I can't seem to do anything to get rid of the warning. Are there any code
tricks to remove this? It's not a big deal - I'm just being anal about no
warnings in the code.
Thanks in advance!