Tests: Reuse open file for C# tests
C#: Don't crash on Metadata as Source in VS2012

Metadata as Source is only supported in VS2013.
Includes test case.
Fixes #2.
C#: Don't crash on lambda parameters

Includes test case.