Commits

Anonymous committed cc9af11

Added NUnit.

Comments (0)

Files changed (29)

Binary file modified.

BlueGo/BlueGo.csproj

     <WarningLevel>4</WarningLevel>
   </PropertyGroup>
   <ItemGroup>
+    <Reference Include="nunit.framework, Version=2.6.1.12217, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>..\NUnit\nunit.framework.dll</HintPath>
+    </Reference>
     <Reference Include="System" />
     <Reference Include="System.Core" />
     <Reference Include="System.Management" />
     </Compile>
     <Compile Include="Program.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
+    <Compile Include="UnitTest.cs" />
     <Compile Include="Util.cs" />
     <Compile Include="WMI_Processor_Information.cs" />
     <EmbeddedResource Include="FormMain.resx">

BlueGo/FormMain.cs

 
             p.StartInfo = info;
             p.Start();
-
-
+            
             using (StreamWriter sw = p.StandardInput)
             {
                 if (sw.BaseStream.CanWrite)
             readStandardOutput(p);
             readStandardError(p);
 
-            //readStandardOutput(p);
-            //readStandardError(p);
-
             p.WaitForExit();
             p.Close();
         }

BlueGo/UnitTest.cs

+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using NUnit.Framework;
+
+namespace BlueGo
+{
+    namespace UnitTest
+    {
+        [TestFixture]
+        public class DownloadTest
+        {
+            [Test]
+            public void Add()
+            {
+                int i = 3 + 2;
+
+                Assert.AreEqual(i, 5);
+            }
+
+            [Test]
+            public void DownloadBoost()
+            {
+               
+            }
+        }
+    }
+}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.