當前位置: 首頁>>代碼示例>>C#>>正文


C# Test.MFTestRunner類代碼示例

本文整理匯總了C#中Microsoft.SPOT.Platform.Test.MFTestRunner的典型用法代碼示例。如果您正苦於以下問題:C# MFTestRunner類的具體用法?C# MFTestRunner怎麽用?C# MFTestRunner使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


MFTestRunner類屬於Microsoft.SPOT.Platform.Test命名空間,在下文中一共展示了MFTestRunner類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: Main

        public static void Main()
        {
            Log.Comment("These tests might create a directory DOTNETMF_FS_EMULATION in the location where the test solution is");

            // Tests that don't need file system
            string[] tests = {
                "CanRead",
                "CanSeek",
                "CanWrite",
                "Close",
                "Flush",
                "Length",
                "MemoryStream_Ctor",
                "Position",
                "Read",
                "ReadByte",
                "Seek",
                "SetLength",
                "ToArray",
                "Write",
                "WriteByte",
            };

            // Tests that need file system
            IOTests.Tests = new string[] {
                "WriteTo",
            };

            String[] allTests = new String[tests.Length + IOTests.Tests.Length];
            tests.CopyTo(allTests, 0);
            IOTests.Tests.CopyTo(allTests, tests.Length);

            MFTestRunner runner = new MFTestRunner(allTests);
        }
開發者ID:aura1213,項目名稱:netmf-interpreter,代碼行數:34,代碼來源:Master.cs

示例2: Main

        public static void Main()
        {
            Master_Controls controls = new Master_Controls();
            Thread appThread = new Thread(new ThreadStart(controls.ApplicationThread));
            appThread.Start();

            //wait until UI Window is created
            _autoEvent.WaitOne();

            Thread.Sleep(500);

            string[] args = {"BorderTests", "CanvasTests","StackPanelTests", "TextTests", "PanelTests",  
                             "ImageTests", "TextFlowTests", "ScrollViewerTests", "ListBoxTests"};
            
            MFTestRunner runner = new MFTestRunner(args);

            Log.Comment("Aborting the Application Thread");
            try
            {
                controls.app.Dispatcher.Invoke(new TimeSpan(0, 0, 5),
                    new DispatcherOperationCallback(controls.ShutDownApp), null);
                appThread.Abort();
            }
            catch (Exception ex)
            {
                Log.Comment("Caught : " + ex.Message + " when aborting the application thread");
            }
        }
開發者ID:aura1213,項目名稱:netmf-interpreter,代碼行數:28,代碼來源:Master.cs

示例3: Main

        public static void Main()
        {
            string[] tests = {
                // not implmented
                //"ProtocolViolationExceptionTests",
                //"WebProxyTests",
                //"HttpWebResponseTests",
                //"WebHeaderCollectionTests",

                // in progress 

                // completed
                "HttpStatusCodeTests",
                "UriTests",
                "HttpVersionTests",
                "FunctionalTests",
                "Base64Tests",
                "WebRequestTests",
                "WebResponseTests",
                "HttpWebRequestTests",
                "HttpRequestHeaderTests",
                "HttpKnownHeaderNamesTests",
                //"AuthenticationTests",
                "WebExceptionTests",
            };

            MFTestRunner runner = new MFTestRunner(tests);
        }
開發者ID:koson,項目名稱:.NETMF_for_LPC17xx,代碼行數:28,代碼來源:Master.cs

示例4: Main

 public static void Main()
 {
     // TODO: Add your other test classes to args.
     string[] args = { "AutoResetEventTests", "InterlockedTests", 
         "MonitorTests","TimeoutTests", "WaitHandleTests"};
     MFTestRunner runner = new MFTestRunner(args);
 }
開發者ID:aura1213,項目名稱:netmf-interpreter,代碼行數:7,代碼來源:Master.cs

示例5: Main

        public static void Main()
        {
            Log.Comment("These tests might create a directory DOTNETMF_FS_EMULATION in the location where the test solution is");

            string []tests = new string[]
            {
                "ECDHTests",
                "ECDsaTest",
                "DSATests",
                "AesTests",
                "RSATests",
                "ECDiffieHellmanTest",
                "HashTests",
                "TDesTests",
                "HMACTests",
                "RNGTests",
                "SHATests",
                "CryptokiTests",
                "SessionTests",
            };
            //int iters = 0;

            //while (true)
            {
                MFTestRunner runner = new MFTestRunner(tests);

                //Debug.Print("!!!!!!!  iterations " + (++iters).ToString() + " !!!!!!!!!!!");
            }
        }
開發者ID:aura1213,項目名稱:netmf-interpreter,代碼行數:29,代碼來源:Master.cs

示例6: Main

        public static void Main()
        {
          
            string[] args = { "InteropTest" };
            MFTestRunner runner = new MFTestRunner(args);

            
        }
開發者ID:aura1213,項目名稱:netmf-interpreter,代碼行數:8,代碼來源:master.cs

示例7: Main

        public static void Main()
        {
            string[] tests = new string[]{                
                "StringBuilderTests"                
            };

            MFTestRunner runner = new MFTestRunner(tests);
        }
開發者ID:aura1213,項目名稱:netmf-interpreter,代碼行數:8,代碼來源:StringBuilderTestsMaster.cs

示例8: Main

        public static void Main()
        {
            // TODO: Add your other test classes to args.
            string[] args = {"BitmapTest"
            };

            Debug.GC(true);

            MFTestRunner runner = new MFTestRunner(args);
        }
開發者ID:aura1213,項目名稱:netmf-interpreter,代碼行數:10,代碼來源:Master.cs

示例9: Main

        public static void Main()
        {
            Log.Comment("These tests might create a directory DOTNETMF_FS_EMULATION in the location where the test solution is");

            string []tests = new string[]
            {
                "CStore",
            };

            MFTestRunner runner = new MFTestRunner(tests);
        }
開發者ID:aura1213,項目名稱:netmf-interpreter,代碼行數:11,代碼來源:Master.cs

示例10: Main

        public static void Main()
        {
            string[] args =
            {
                "HashtableTests",  
                "ArrayListTests",  
                "QueueTests",
                "StackTests",
            };

            MFTestRunner runner = new MFTestRunner(args);
        }
開發者ID:aura1213,項目名稱:netmf-interpreter,代碼行數:12,代碼來源:Master.cs

示例11: Main

 public static void Main()
 {
     string[] args = {
                         "ServicesTests", 
                         "FaultsTests", 
                         "MtomTests", 
                         "SoapTests", 
                         "TransportTests", 
                         "UtilitiesTests", 
                         "WsaAddressingTests", 
                         "XmlTests" };
     MFTestRunner runner = new MFTestRunner(args);
 }
開發者ID:koson,項目名稱:.NETMF_for_LPC17xx,代碼行數:13,代碼來源:Master.cs

示例12: Main

        public static void Main()
        {
            Log.Comment("These tests might create a directory DOTNETMF_FS_EMULATION in the location where the test solution is");

            string []tests = new string[]
            {
                "RsaSignatureTest2",
                "WLCScenario",
                "RsaSignatureTest",
                "RSADiffKeySize",
            };

            MFTestRunner runner = new MFTestRunner(tests);
        }
開發者ID:koson,項目名稱:.NETMF_for_LPC17xx,代碼行數:14,代碼來源:Master.cs

示例13: Main

        public static void Main()
        {
            Log.Comment("These tests might create a directory DOTNETMF_FS_EMULATION in the location where the test solution is");

            IOTests.Tests = new string[]{
                "DirectoryTests",
                "PathTests",
                "FileTests",
                "DirectoryInfoTests",
                "FileInfoTests",
                "FileStreamTests",
            };

            MFTestRunner runner = new MFTestRunner(IOTests.Tests);
        }
開發者ID:trfiladelfo,項目名稱:MicroFrameworkSDK-Mono,代碼行數:15,代碼來源:Master.cs

示例14: Main

        public static void Main()
        {
            string[] tests = new string[]{                
                "PrecompiledTests",
                "Split_Grep_Tests",                
                "SubstringTests",
                "RegexpOptionsTest",
                "CaptureTests",
                "GroupTests",
                "MatchTests",
                "CacheTests"
            };

            MFTestRunner runner = new MFTestRunner(tests);
        }
開發者ID:koson,項目名稱:.NETMF_for_LPC17xx,代碼行數:15,代碼來源:Master.cs

示例15: Main

        public static void Main()
        {
            //Set the system time to be valid relative to the certificate expiration dates.
            DateTime systemTime = new DateTime(2008, 01, 01, 01, 01, 01);
            
            Log.Comment("Setting System Time to: " + systemTime.ToString());
            Hardware.Utility.SetLocalTime(systemTime);

            string[] args = { 
                "X509CertificateTests",
                "SslStreamTests",
                //"CertificateStoreTests", 
            };

            MFTestRunner runner = new MFTestRunner(args);
        }
開發者ID:aura1213,項目名稱:netmf-interpreter,代碼行數:16,代碼來源:Master.cs


注:本文中的Microsoft.SPOT.Platform.Test.MFTestRunner類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。