• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Test.MFTestRunner类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中Microsoft.SPOT.Platform.Test.MFTestRunner的典型用法代码示例。如果您正苦于以下问题:C# MFTestRunner类的具体用法?C# MFTestRunner怎么用?C# MFTestRunner使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



MFTestRunner类属于Microsoft.SPOT.Platform.Test命名空间,在下文中一共展示了MFTestRunner类的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: Main

 public static void Main()
 {
     string[] args = {  
                         "MicrosoftSpotReflectionTests",
                         "SystemReflectionAssembly", 
                         "SystemReflectionTypeTests",
                         "SystemReflectionMemberTests",
                         "InitLocalsTests",
                         "SystemTypeTests",
                         "SystemAppDomainTests", 
                         "SystemStringTests", 
                         "SystemDateTimeTests", 
                         "SystemMathTests", 
                         "SystemGCTests", 
                         "SystemGlobalizationTests", 
                         "SystemWeakReferenceTests" 
                     };
     MFTestRunner runner = new MFTestRunner(args);
 }
开发者ID:trfiladelfo,项目名称:MicroFrameworkSDK-Mono,代码行数:19,代码来源:Master.cs


示例17: 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[] {
                "CanRead",
                "CanSeek",
                "CanWrite",
                "Constructors_FileMode",
                "Constructors_FileAccess",
                "Constructors_FileShare",
                "Flush",
                "PropertyTests",
                "Read",
                "Seek",
                "Write",
            };

            MFTestRunner runner = new MFTestRunner(IOTests.Tests);
        }
开发者ID:koson,项目名称:.NETMF_for_LPC17xx,代码行数:20,代码来源:Master.cs


示例18: Main

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

            //wait until UI Window is created
            autoEvent.WaitOne();
            string[] args = { "BrushTests", "ColorTests", "DrawingContextTests" };
            MFTestRunner runner = new MFTestRunner(args);

            Log.Comment("Aborting the Application Thread");
            try
            {
                shapes.app.Dispatcher.Invoke(new TimeSpan(0, 0, 5),
                    new DispatcherOperationCallback(shapes.ShutDownApp), null);
                appThread.Abort();
            }
            catch (Exception ex)
            {
                Log.Comment("Caught : " + ex.Message + " when aborting the application thread");
            }
        }
开发者ID:koson,项目名称:.NETMF_for_LPC17xx,代码行数:24,代码来源:Master.cs


示例19: Main

 public static void Main()
 {
     string[] args = { "BasicTests"};
     MFTestRunner runner = new MFTestRunner(args);
 }
开发者ID:aura1213,项目名称:netmf-interpreter,代码行数:5,代码来源:Master.cs



注:本文中的Microsoft.SPOT.Platform.Test.MFTestRunner类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Tests.HttpServer类代码示例发布时间:2022-05-26
下一篇:
C# Hardware.SPI类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap