Update LibraryImportGenerator unit tests with interpolated string arguments (#69285)
authorElinor Fung <elfung@microsoft.com>
Fri, 13 May 2022 04:25:12 +0000 (21:25 -0700)
committerGitHub <noreply@github.com>
Fri, 13 May 2022 04:25:12 +0000 (21:25 -0700)
src/libraries/System.Runtime.InteropServices/tests/LibraryImportGenerator.UnitTests/CodeSnippets.cs

index 4f65984..f569dc7 100644 (file)
@@ -225,15 +225,15 @@ partial class Test
         SetLastError = IsFalse)]
     public static partial void Method1();
 
-    [LibraryImport(nameof(Test),
+    [LibraryImport(nameof(Test) + ""Suffix"",
         StringMarshalling = (StringMarshalling)Two,
-        EntryPoint = EntryPointName,
+        EntryPoint = EntryPointName + ""Suffix"",
         SetLastError = !IsTrue)]
     public static partial void Method2();
 
-    [LibraryImport(nameof(Test),
+    [LibraryImport($""{nameof(Test)}Suffix"",
         StringMarshalling = (StringMarshalling)2,
-        EntryPoint = EntryPointName,
+        EntryPoint = $""{EntryPointName}Suffix"",
         SetLastError = 0 != 1)]
     public static partial void Method3();
 }