public void CallbackThreadPoolEventArgsConstructorTest() { CallbackReason reason = new CallbackReason(); // TODO: 初始化为适当的值 CallbackThreadPoolEventArgs target = new CallbackThreadPoolEventArgs(reason); Assert.Inconclusive("TODO: 实现用来验证目标的代码"); }
public void ReasonTest() { CallbackReason reason = new CallbackReason(); // TODO: 初始化为适当的值 CallbackThreadPoolEventArgs target = new CallbackThreadPoolEventArgs( reason ); // TODO: 初始化为适当的值 CallbackReason actual; actual = target.Reason; Assert.Inconclusive( "验证此测试方法的正确性。" ); }
public void OnThreadEventTest() { PrivateObject param0 = null; // TODO: 初始化为适当的值 CallbackThreadPool_Accessor target = new CallbackThreadPool_Accessor(param0); // TODO: 初始化为适当的值 CallbackReason reason = new CallbackReason(); // TODO: 初始化为适当的值 target.OnThreadEvent(reason); Assert.Inconclusive("无法验证不返回值的方法。"); }
public void ReasonTest() { CallbackReason reason = new CallbackReason(); // TODO: 初始化为适当的值 CallbackThreadPoolEventArgs target = new CallbackThreadPoolEventArgs(reason); // TODO: 初始化为适当的值 CallbackReason actual; actual = target.Reason; Assert.Inconclusive("验证此测试方法的正确性。"); }
// Registered method which is invoked when the work part changes. void OnChangeWorkPart(CallbackReason reason, IntPtr application_data, IntPtr user_data) { // We should catch any exceptions in our callback, so that we don't // return an exception to NX. try { HighlightComponent(selectedComponent, false); UpdateTree(); } catch (Exception ex) { theSession.LogFile.WriteLine("Got exception in callback"); theSession.LogFile.WriteLine(ex.ToString()); } }
// Registered method which is invoked when a part closes void OnClosePart(CallbackReason reason, IntPtr application_data, IntPtr user_data) { // We should catch any exceptions in our callback, so that we don't // return an exception to NX. try { // If the display part has been closed, call UpdateTree(), // which will clear all elements from the tree. if (theSession.Parts.Display == null) { UpdateTree(); } } catch (Exception ex) { theSession.LogFile.WriteLine("Got exception in callback"); theSession.LogFile.WriteLine(ex.ToString()); } }
//Refer to the CopyProgressRoutine delegate for paramater explanations. private ProgressResult CopyProgressCallback( long totalFileSize, long totalBytesTransferred, long streamSize, long streamBytesTransferred, uint dwStreamNumber, CallbackReason dwCallbackReason, IntPtr hSourceFile, IntPtr hDestinationFile, IntPtr lpData) { OnProgressChanged(totalFileSize, totalBytesTransferred); return ProgressResult.Continue; }
public virtual void OnThreadEvent(CallbackReason reason) { EventHandler<CallbackThreadPoolEventArgs> threadEvent = this.m_threadEvent; if (threadEvent != null) { threadEvent(this, new CallbackThreadPoolEventArgs(reason)); } }
public CallbackThreadPoolEventArgs(CallbackReason reason) { this.m_reason = reason; }
public void CallbackThreadPoolEventArgsConstructorTest() { CallbackReason reason = new CallbackReason(); // TODO: 初始化为适当的值 CallbackThreadPoolEventArgs target = new CallbackThreadPoolEventArgs( reason ); Assert.Inconclusive( "TODO: 实现用来验证目标的代码" ); }
public void OnThreadEventTest() { PrivateObject param0 = null; // TODO: 初始化为适当的值 CallbackThreadPool_Accessor target = new CallbackThreadPool_Accessor( param0 ); // TODO: 初始化为适当的值 CallbackReason reason = new CallbackReason(); // TODO: 初始化为适当的值 target.OnThreadEvent( reason ); Assert.Inconclusive( "无法验证不返回值的方法。" ); }