public void hm_pu_loginTest() { UInt32 iResult = 0; try { IntPtr i; iResult = SDK_HuaMai.hm_sdk_init(); iResult = SDK_HuaMai.hm_pu_login("huamaiyun.com", 80, "AB66616C00609", "商丘市视频联网报警中心", "2299578", out i); } catch (Exception ex) { iResult = 999999; } finally { SDK_HuaMai.hm_sdk_uninit(); } Assert.AreEqual(Convert.ToUInt32(0), iResult); }