[TextEditor] Tests no longer crash Mono.exe.

Fixed all tests except for tests which create TextEditors. Style loading doesn't work for UnitTests.
Fixed tests which didn't require a TextEditor.

Only remaining ones are ViTests and SyntaxHighlightingTests.
Merge pull request #305 from Therzok/fixWindowsTests

[TextEditor] Tests no longer crash Mono.exe.