Exemplo n.º 1
0
        public void PortablePdb()
        {
            var original = CreateCompilation(
                @"class C { static void Main() { } }",
                options: BaseCSharpCompilationOptions,
                sourceFileName: "test.cs");

            RoundTripUtil.VerifyRoundTrip(original, new EmitOptions(debugInformationFormat: DebugInformationFormat.PortablePdb, pdbFilePath: "test.pdb"));
        }
Exemplo n.º 2
0
        public void Platform_RoundTrip(Platform platform)
        {
            var original = CreateCompilation(
                "class C { static void Main() { } }",
                options: BaseCSharpCompilationOptions.WithPlatform(platform),
                sourceFileName: "test.cs");

            RoundTripUtil.VerifyRoundTrip(original);
        }
Exemplo n.º 3
0
        public void Platform_RoundTrip_VB(Platform platform)
        {
            var original = CreateVisualBasicCompilation(
                compilationOptions: BaseVisualBasicCompilationOptions.WithPlatform(platform).WithModuleName("test"),
                encoding: Encoding.UTF8,
                code: @"
Class C
    Shared Sub Main()
    End Sub
End Class",
                assemblyName: "test",
                sourceFileName: "test.vb");

            RoundTripUtil.VerifyRoundTrip(original);
        }