本文整理汇总了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;未经允许,请勿转载。 |
请发表评论