Skip to content
Snippets Groups Projects
Commit 13387988 authored by Jan Tattermusch's avatar Jan Tattermusch
Browse files

fix method signature and add test

parent 03ad9510
No related branches found
No related tags found
No related merge requests found
......@@ -69,5 +69,13 @@ namespace Grpc.Core.Tests
Assert.IsFalse(object.ReferenceEquals(env1, env2));
}
[Test]
public void GetCoreVersionString()
{
var coreVersion = GrpcEnvironment.GetCoreVersionString();
var parts = coreVersion.Split('.');
Assert.AreEqual(4, parts.Length);
}
}
}
......@@ -169,7 +169,7 @@ namespace Grpc.Core
/// <summary>
/// Gets version of gRPC C core.
/// </summary>
internal string GetCoreVersionString()
internal static string GetCoreVersionString()
{
var ptr = grpcsharp_version_string(); // the pointer is not owned
return Marshal.PtrToStringAnsi(ptr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment