Skip to content

Commit 149a1fc

Browse files
committed
fix test
1 parent ed07c7c commit 149a1fc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/System.ServiceModel.NetNamedPipe/tests/NetNamedPipeBindingTest.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,13 @@ public static void AppContextSwitch_useSha1InPipeConnectionGetHashAlgorithm()
1818
{
1919
Type t = Assembly.GetAssembly(typeof(NamedPipeTransportBindingElement))
2020
.GetType(typeof(NamedPipeTransportBindingElement).Namespace + ".PipeUri");
21-
MethodInfo m = t.GetMethod("BuildSharedMemoryName", BindingFlags.Static | BindingFlags.Public);
21+
MethodInfo m = t.GetMethod(
22+
"BuildSharedMemoryName",
23+
BindingFlags.Static | BindingFlags.Public,
24+
binder: null,
25+
types: new Type[] { typeof(string), typeof(string), typeof(bool) },
26+
modifiers: null
27+
);
2228

2329
//swtich on
2430
AppContext.SetSwitch("Switch.System.ServiceModel.UseSha1InPipeConnectionGetHashAlgorithm", true);

0 commit comments

Comments
 (0)