Fix compiler warning in .NET test

Removes unused variable in a test assertion that was causing a compiler warning on Mono. ReSharper didn't like it either.