public void H264_DVR_LoginTest() { SDKState.XMSDK_Init(); H264_DVR_DEVICEINFO OutDev; int nError = 0; int intResult = SDK_XMSDK.H264_DVR_Login("192.168.2.165", 34567, "admin", "", out OutDev, out nError, SocketStyle.TCPSOCKET); SDK_XMSDK.H264_DVR_Logout(Convert.ToInt32(intResult)); SDKState.XMSDK_Release(); Assert.AreEqual(intResult, 1); }