mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-14 14:23:34 +01:00
* Lower priority from Proxy mappings * Fix codefactor * extra tests * #205 * Fix test for linux * `c:\temp\x.json` fix * Extra tests * more tests * more tests * codefactor * #200 * refactor * refactor * tests
14 lines
375 B
C#
14 lines
375 B
C#
using System.Reflection;
|
|
|
|
namespace WireMock.Net.Tests
|
|
{
|
|
public static class TestUtils
|
|
{
|
|
public static T GetPrivateFieldValue<T>(this object obj, string fieldName)
|
|
{
|
|
var field = obj.GetType().GetTypeInfo().GetField(fieldName, BindingFlags.NonPublic | BindingFlags.Instance);
|
|
|
|
return (T)field.GetValue(obj);
|
|
}
|
|
}
|
|
} |