public void ResetErrorHandler() { _lib.ResetErrorHandler(); Assert.IsFalse(_lib.GetHasError(), "GetHasError should have returned False after calling the reset method"); sbyte[] errorMessage = new sbyte[4096]; String errorString; fixed(sbyte *pErrorMessage = &errorMessage[0]) { _lib.GetErrorMessage(pErrorMessage); errorString = new String(pErrorMessage); } Assert.IsTrue(errorString.Length == 0, "GetErrorMessage should not return any message after calling the reset method"); }