public static Stream GetTestFileStream(string resourceName)
{
Assembly assembly = Assembly.GetExecutingAssembly();
Stream stream = assembly.GetManifestResourceStream(
typeof(CSharpTestUtilities), "TestSourceFiles." + resourceName);
Assert.IsNotNull(stream, "Test stream could not be retrieved.");
return stream;
}