• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • 為WPF項目創建單元測試[2]

    發表于:2010-02-21來源:作者:點擊數: 標簽:單元項目WPF
    為WPF項目創建單元測試[2] 單元測試方法 using System; using System.Collections.Generic; using System.Text; using System.Threading; using System.Security.Permissions; using System.Reflection; namespace TestUnit { public class CrossThreadTestR

      為WPF項目創建單元測試[2]   單元測試方法

       using System;

      using System.Collections.Generic;

      using System.Text;

      using System.Threading;

      using System.Security.Permissions;

      using System.Reflection;

      namespace TestUnit

      {

      public class CrossThreadTestRunner

      {

      private Exception lastException;

      public void RunInMTA(ThreadStart userDelegate)

      {

      Run(userDelegate, ApartmentState.MTA);

      }

      public void RunInSTA(ThreadStart userDelegate)

      {

      Run(userDelegate, ApartmentState.STA);

      }

      private void Run(ThreadStart userDelegate, ApartmentState apartmentState)

      {

      lastException = null;

      Thread thread = new Thread(

      delegate()

      {

      try

      {

      userDelegate.Invoke();

    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>