I am using a custom assertion method, and have a problem with it.
LoginPart loginPart = App.Current.MainWindow.CurrentPart as LoginPart;
Utils.Assert(loginPart != null);
Of course, on the last line, I got a warning "Possible System.NullReferenceException" on "loginPart".
So I tried to add a custom Assertion method to R#4.0 (build 783), but couldn't find this anywhere in the options. I am sure this was possible before ?
So I googled a little, and added:
to my .resharper file, both in solution and project files since I don't know which one I had to modify, but to no avail.
Is there a fix to this in Resharper 4?
Edited by: MrJul on Apr 25, 2008 6:40 PM