I'm sure I remember seeing this covered before, but I can't find the
discussion, and can't figure away around this.
I have an MSTest test class, and it has a line something like this:
MyDerivedClass foo = myBaseVar as MyDerivedClass;
var testValue = foo.SomeMethod();
ReSharper is flagging the last line as a possible null reference exception,
in spite of the fact that the Assert.IsNotNull(foo) ensures that foo is
not-null by the time that executes.
I'd like to get rid of the warning marker in the side bar, but I cannot
recall how to go about this. Shoudln't ReSharper already have appropriate
external annotations to cover the built-in MSTest assert methods?
Thanks for any info...