コード例 #1
0
ファイル: Master.cs プロジェクト: aura1213/netmf-interpreter
        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);
        }
コード例 #2
0
ファイル: Master.cs プロジェクト: aura1213/netmf-interpreter
        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 = {
                "ChangeExtensions",
                "Combine",
                "GetDirectoryName",
                "GetExtension",
                "GetFileName",
                "GetFileNameWithoutExtension",
                "GetPathRoot",
                "HasExtension",
                "IsPathRooted",
                //"FunctionalCases",
            };

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

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

            MFTestRunner runner = new MFTestRunner(allTests);
        }
コード例 #3
0
ファイル: Master.cs プロジェクト: aura1213/netmf-interpreter
        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");
            }
        }
コード例 #4
0
ファイル: Master.cs プロジェクト: koson/.NETMF_for_LPC17xx
        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);
        }
コード例 #5
0
ファイル: Master.cs プロジェクト: aura1213/netmf-interpreter
 public static void Main()
 {
     // TODO: Add your other test classes to args.
     string[] args = { "AutoResetEventTests", "InterlockedTests", 
         "MonitorTests","TimeoutTests", "WaitHandleTests"};
     MFTestRunner runner = new MFTestRunner(args);
 }
コード例 #6
0
ファイル: Master.cs プロジェクト: aura1213/netmf-interpreter
        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() + " !!!!!!!!!!!");
            }
        }
コード例 #7
0
ファイル: master.cs プロジェクト: aura1213/netmf-interpreter
        public static void Main()
        {
          
            string[] args = { "InteropTest" };
            MFTestRunner runner = new MFTestRunner(args);

            
        }
コード例 #8
0
        public static void Main()
        {
            string[] tests = new string[]{                
                "StringBuilderTests"                
            };

            MFTestRunner runner = new MFTestRunner(tests);
        }
コード例 #9
0
ファイル: Master.cs プロジェクト: aura1213/netmf-interpreter
        public static void Main()
        {
            // TODO: Add your other test classes to args.
            string[] args = {"BitmapTest"
            };

            Debug.GC(true);

            MFTestRunner runner = new MFTestRunner(args);
        }
コード例 #10
0
ファイル: Master.cs プロジェクト: aura1213/netmf-interpreter
        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);
        }
コード例 #11
0
ファイル: Master.cs プロジェクト: aura1213/netmf-interpreter
        public static void Main()
        {
            string[] args = 
            { 
                "SPOTXmlTests",
                "XmlBasicTests",
                "RandomXmlTests",
                "XmlNameTableTests",
            };

            MFTestRunner runner = new MFTestRunner(args);
        }
コード例 #12
0
ファイル: Master.cs プロジェクト: aura1213/netmf-interpreter
        public static void Main()
        {
            string[] args =
            {
                "HashtableTests",  
                "ArrayListTests",  
                "QueueTests",
                "StackTests",
            };

            MFTestRunner runner = new MFTestRunner(args);
        }
コード例 #13
0
ファイル: Master.cs プロジェクト: koson/.NETMF_for_LPC17xx
 public static void Main()
 {
     string[] args = {
                         "ServicesTests", 
                         "FaultsTests", 
                         "MtomTests", 
                         "SoapTests", 
                         "TransportTests", 
                         "UtilitiesTests", 
                         "WsaAddressingTests", 
                         "XmlTests" };
     MFTestRunner runner = new MFTestRunner(args);
 }
コード例 #14
0
ファイル: Master.cs プロジェクト: aura1213/netmf-interpreter
        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[]
            {
                "Zeros",
                "AnsiX923",
                "Pkcs7",
                "Iso10126",
            };

            MFTestRunner runner = new MFTestRunner(tests);
        }
コード例 #15
0
ファイル: Master.cs プロジェクト: koson/.NETMF_for_LPC17xx
        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);
        }
コード例 #16
0
        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);
        }
コード例 #17
0
ファイル: Master.cs プロジェクト: koson/.NETMF_for_LPC17xx
        public static void Main()
        {
            string[] tests = new string[]{                
                "PrecompiledTests",
                "Split_Grep_Tests",                
                "SubstringTests",
                "RegexpOptionsTest",
                "CaptureTests",
                "GroupTests",
                "MatchTests",
                "CacheTests"
            };

            MFTestRunner runner = new MFTestRunner(tests);
        }
コード例 #18
0
ファイル: Master.cs プロジェクト: koson/.NETMF_for_LPC17xx
        public static void Main()
        {
            for (int i = 0; i < 10; i++)
            {
                NetworkInterface ni = NetworkInterface.GetAllNetworkInterfaces()[0];

                if (!ni.IsDhcpEnabled || ni.IPAddress != "0.0.0.0")
                {
                    break;
                }
                Thread.Sleep(500);
            }

            string[] args = { "NetTests" };
            MFTestRunner runner = new MFTestRunner(args);
        }
コード例 #19
0
ファイル: Master.cs プロジェクト: aura1213/netmf-interpreter
        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);
        }
コード例 #20
0
ファイル: Master.cs プロジェクト: koson/.NETMF_for_LPC17xx
        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[]
            {
                "RSASignStream",
                "RSAsign",
                "RSAEncrypt",
                "RSADesktopTest",
                "DSAsign",
                "AsymmetricAlgorithmTest",
                "DSADesktopTest",
            };

            MFTestRunner runner = new MFTestRunner(tests);
        }
コード例 #21
0
ファイル: Master.cs プロジェクト: aura1213/netmf-interpreter
        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[] {
                "DI_Constructor",
                "CreateDirectory",
                "Delete",
                "Exists",
                "GetDirectories",
                "GetFiles",
                "GetSetCurrentDirectory",
                "Move",
            };

            MFTestRunner runner = new MFTestRunner(IOTests.Tests);
        }
コード例 #22
0
 public static void Main()
 {
     string[] args = {  
                         "MicrosoftSpotReflectionTests",
                         "SystemReflectionAssembly", 
                         "SystemReflectionTypeTests",
                         "SystemReflectionMemberTests",
                         "InitLocalsTests",
                         "SystemTypeTests",
                         "SystemAppDomainTests", 
                         "SystemStringTests", 
                         "SystemDateTimeTests", 
                         "SystemMathTests", 
                         "SystemGCTests", 
                         "SystemGlobalizationTests", 
                         "SystemWeakReferenceTests" 
                     };
     MFTestRunner runner = new MFTestRunner(args);
 }
コード例 #23
0
ファイル: Master.cs プロジェクト: koson/.NETMF_for_LPC17xx
        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);
        }
コード例 #24
0
ファイル: Master.cs プロジェクト: koson/.NETMF_for_LPC17xx
        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[] {
                "Copy",
                "Create",
                "Delete",
                "Exists",
                "GetSetAttributes",
                "Open_FM",
                "Open_FM_FA",
                "Open_FM_FA_FS",
                "OpenRead",
                "OpenWrite",
                "RWAllBytes",
            };

            MFTestRunner runner = new MFTestRunner(IOTests.Tests);
        }
コード例 #25
0
ファイル: Master.cs プロジェクト: aura1213/netmf-interpreter
        public static void Main()
        {
            Master_Presentation presentation = new Master_Presentation();
            Thread appThread = new Thread(new ThreadStart(presentation.ApplicationThread));
            appThread.Start();

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

            Log.Comment("Aborting the Application Thread");
            try
            {
                presentation.app.Dispatcher.Invoke(new TimeSpan(0, 0, 5),
                    new DispatcherOperationCallback(presentation.ShutDownApp), null);
                appThread.Abort();
            }
            catch (Exception ex)
            {
                Log.Comment("Caught : " + ex.Message + " when aborting the application thread");
            }
        }
コード例 #26
0
ファイル: Master.cs プロジェクト: koson/.NETMF_for_LPC17xx
        public static void Main()
        {
            Log.Comment("These tests require the unrestricted use of ports 1024-65535");   

            for (int i = 0; i < 10; i++)
            {
                NetworkInterface ni = NetworkInterface.GetAllNetworkInterfaces()[0];

                if (!ni.IsDhcpEnabled || ni.IPAddress != "0.0.0.0")
                {
                    break;
                }
                Thread.Sleep(500);
            }
            string[] args = { 
                "SocketTests",
                "SocketsEnumsTests",
                "SocketExceptionTests",
                "StressTests",                
            };

            MFTestRunner runner = new MFTestRunner(args);
        }
コード例 #27
0
ファイル: Master.cs プロジェクト: koson/.NETMF_for_LPC17xx
        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[]
            {
                "SHAVS",
                "HashCompare",
                "Hash_SHA512known",
                "Hash_SHA512",
                "Hash_SHA384known",
                "Hash_SHA384",
                "Hash_MD5known",
                "Sim_SHA1",
                "Hash_SHA256known",
                "Hash_SHA256",
                "HMACTestVector",
                "Hash_HMACSHA1known",
                "GetHashVsStream",
            };

            MFTestRunner runner = new MFTestRunner(tests);
        }
コード例 #28
0
ファイル: Master.cs プロジェクト: aura1213/netmf-interpreter
        public static void Main()
        {

            Thread appThread = new Thread(new ThreadStart(new Master_Shapes().ApplicationThread));
            appThread.Start();

            //wait until UI Window is created
            autoEvent.WaitOne(); Thread.Sleep( 100 );

            string[] args = {"LineTests", "EllipseTests", 
                            "RectangleTests", "PolygonTests"};
            
            MFTestRunner runner = new MFTestRunner(args);

            Log.Comment("Aborting the Application Thread");
            try
            {
                appThread.Abort();
            }
            catch (Exception ex)
            {
                Log.Comment("Caught : " + ex.Message + " when aborting the application thread");
            }
        }
コード例 #29
0
ファイル: Master.cs プロジェクト: koson/.NETMF_for_LPC17xx
        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");
            }
        }
コード例 #30
0
ファイル: Master.cs プロジェクト: aura1213/netmf-interpreter
 public static void Main()
 {
     string[] args = { "BasicTests"};
     MFTestRunner runner = new MFTestRunner(args);
 }