예제 #1
0
 public static int WritePactFile(PortHandle port, string pactFilePath)
 {
     fixed(byte *path = CStyleStringFromSystemString(pactFilePath))
     {
         return(WritePactFileImpl(port, path));
     }
 }
예제 #2
0
        public static string MockServerMismatches(PortHandle port)
        {
            var result = MockServerMismatchesImpl(port);

            if (result == null)
            {
                throw new ArgumentException($"{nameof(MockServerMismatches)} failed on invalid port handle");
            }

            return(SystemStringFromCStyleString(result));
        }
예제 #3
0
 private static extern byte *MockServerMismatchesImpl(PortHandle port);
예제 #4
0
 public static extern int MockServerMatched(PortHandle port);
예제 #5
0
 private static extern int WritePactFileImpl(PortHandle port, byte *pactFilePath);