Skip to content
Browse files

Removed empty test projects.

  • Loading branch information...
1 parent b964986 commit 8b397b59ca57c55382406e3c617c90d33a17540d @tt committed Oct 19, 2009
View
79 GitCommandTest/CheckoutTest.cs
@@ -1,79 +0,0 @@
-using GitCommands;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-namespace GitCommandTest
-{
-
-
- /// <summary>
- ///This is a test class for CheckoutTest and is intended
- ///to contain all CheckoutTest Unit Tests
- ///</summary>
- [TestClass()]
- public class CheckoutTest
- {
-
-
- private TestContext testContextInstance;
-
- /// <summary>
- ///Gets or sets the test context which provides
- ///information about and functionality for the current test run.
- ///</summary>
- public TestContext TestContext
- {
- get
- {
- return testContextInstance;
- }
- set
- {
- testContextInstance = value;
- }
- }
-
- #region Additional test attributes
- //
- //You can use the following additional attributes as you write your tests:
- //
- //Use ClassInitialize to run code before running the first test in the class
- //[ClassInitialize()]
- //public static void MyClassInitialize(TestContext testContext)
- //{
- //}
- //
- //Use ClassCleanup to run code after all tests in a class have run
- //[ClassCleanup()]
- //public static void MyClassCleanup()
- //{
- //}
- //
- //Use TestInitialize to run code before running each test
- //[TestInitialize()]
- //public void MyTestInitialize()
- //{
- //}
- //
- //Use TestCleanup to run code after each test has run
- //[TestCleanup()]
- //public void MyTestCleanup()
- //{
- //}
- //
- #endregion
-
-
- /// <summary>
- ///A test for Execute
- ///</summary>
- [TestMethod()]
- public void ExecuteTest()
- {
- /*CheckoutDto dto = new CheckoutDto("master");
-
- Checkout target = new Checkout(dto);
- target.Execute();
-
- Assert.IsTrue(dto.Result.Length > 0, "Git checkout failed");*/
- }
- }
-}
View
69 GitCommandTest/GitCommandTest.csproj
@@ -1,69 +0,0 @@
-<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>9.0.30729</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{3BFE697B-E25F-4068-95F9-DB9627F21236}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>GitCommandTest</RootNamespace>
- <AssemblyName>GitCommandTest</AssemblyName>
- <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- <TargetFrameworkSubset>
- </TargetFrameworkSubset>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Release\</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
- <Reference Include="System" />
- <Reference Include="System.Data" />
- <Reference Include="System.Data.DataSetExtensions">
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
- </Reference>
- <Reference Include="System.Xml" />
- <Reference Include="System.Xml.Linq">
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <Compile Include="CheckoutTest.cs" />
- <Compile Include="Properties\AssemblyInfo.cs" />
- <Compile Include="PushTest.cs" />
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\GitCommands\GitCommands\GitCommands.csproj">
- <Project>{BD6AA2A2-997D-4AFF-ACC7-B64F6E51D181}</Project>
- <Name>GitCommands</Name>
- </ProjectReference>
- </ItemGroup>
- <ItemGroup>
- <None Include="app.config" />
- </ItemGroup>
- <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- -->
-</Project>
View
35 GitCommandTest/Properties/AssemblyInfo.cs
@@ -1,35 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("GitCommandTest")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("GitCommandTest")]
-[assembly: AssemblyCopyright("Copyright © 2008")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM componenets. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("2dbe5dcf-51c5-4aff-96dc-0840df50566b")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Revision and Build Numbers
-// by using the '*' as shown below:
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
View
243 GitCommandTest/PushTest.cs
@@ -1,243 +0,0 @@
-using System;
-using System.Text;
-using System.Collections.Generic;
-
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-using System.Diagnostics;
-using System.Collections;
-using System.Runtime.InteropServices;
-
-
-
-namespace GitCommandTest
-{
-
- public struct PROCESS_INFORMATION
- {
-
- public IntPtr hProcess;
-
- public IntPtr hThread;
-
- public uint dwProcessId;
-
- public uint dwThreadId;
-
- }
-
-
-
- public struct STARTUPINFO
- {
-
- public uint cb;
-
- public string lpReserved;
-
- public string lpDesktop;
-
- public string lpTitle;
-
- public uint dwX;
-
- public uint dwY;
-
- public uint dwXSize;
-
- public uint dwYSize;
-
- public uint dwXCountChars;
-
- public uint dwYCountChars;
-
- public uint dwFillAttribute;
-
- public uint dwFlags;
-
- public short wShowWindow;
-
- public short cbReserved2;
-
- public IntPtr lpReserved2;
-
- public IntPtr hStdInput;
-
- public IntPtr hStdOutput;
-
- public IntPtr hStdError;
-
- }
-
-
-
- public struct SECURITY_ATTRIBUTES
- {
-
- public int length;
-
- public IntPtr lpSecurityDescriptor;
-
- public bool bInheritHandle;
-
- }
-
-
- /// <summary>
- /// Summary description for PushTest
- /// </summary>
- [TestClass]
- public class PushTest
- {
-
- [DllImport("kernel32.dll")]
-
- static extern bool CreateProcess(string lpApplicationName, string lpCommandLine, IntPtr lpProcessAttributes, IntPtr lpThreadAttributes,
- bool bInheritHandles, uint dwCreationFlags, IntPtr lpEnvironment,
- string lpCurrentDirectory, ref STARTUPINFO lpStartupInfo,out PROCESS_INFORMATION lpProcessInformation);
-
-
- #region Additional test attributes
- //
- // You can use the following additional attributes as you write your tests:
- //
- // Use ClassInitialize to run code before running the first test in the class
- // [ClassInitialize()]
- // public static void MyClassInitialize(TestContext testContext) { }
- //
- // Use ClassCleanup to run code after all tests in a class have run
- // [ClassCleanup()]
- // public static void MyClassCleanup() { }
- //
- // Use TestInitialize to run code before running each test
- // [TestInitialize()]
- // public void MyTestInitialize() { }
- //
- // Use TestCleanup to run code after each test has run
- // [TestCleanup()]
- // public void MyTestCleanup() { }
- //
- #endregion
-
- public StringBuilder Output { get; set; }
- public StringBuilder ErrorOutput { get; set; }
-
- void process_Exited(object sender, EventArgs e)
- {
-
- }
-
- void process_ErrorDataReceived(object sender, System.Diagnostics.DataReceivedEventArgs e)
- {
- Output.Append(e.Data + "\n");
-
- }
-
- void process_OutputDataReceived(object sender, System.Diagnostics.DataReceivedEventArgs e)
- {
- Output.Append(e.Data + "\n");
- }
-
- System.Diagnostics.Process Process;
-
- [TestMethod]
- public void PushToWebTest()
- {
- STARTUPINFO si = new STARTUPINFO();
- si.dwFlags = 0x00000008;
- si.lpDesktop = "winsta0\\default";
-
-
- PROCESS_INFORMATION pi = new PROCESS_INFORMATION();
-
- IDictionary x = Environment.GetEnvironmentVariables();
- x["SSH_ASKPASS"] = "C:/Program Files/Git/libexec/git-core/git-gui--askpass";
- x["DISPLAY"] = "localhost:0";
- //CreateProcess("C:\\WINDOWS\\SYSTEM32\\Calc.exe", null, IntPtr.Zero, IntPtr.Zero, false, 0, IntPtr.Zero, null, ref si, out pi);
- //CreateProcess(@"C:\\WINDOWS\\notepad.exe", null, IntPtr.Zero, IntPtr.Zero, false,0x00000008 , IntPtr.Zero, null, ref si, out pi);
- CreateProcess(@"C:\Program Files\Git\bin\ssh.exe", @"""""C:\Program Files\Git\bin\ssh.exe"" git@github.com""", IntPtr.Zero, IntPtr.Zero, false, 0x00000008, IntPtr.Zero, null, ref si, out pi);
- CreateProcess(@"C:\Program Files\Git\libexec\git-core\git-push.exe", @"""C:\Program Files\Git\libexec\git-core\git-push.exe""", IntPtr.Zero, IntPtr.Zero, false, 0x00000008, IntPtr.Zero, @"f:\GitExtensions\", ref si, out pi);
-
- return;
-
- //process used to execute external commands
- Process = new System.Diagnostics.Process();
- Process.StartInfo.UseShellExecute = false;
- Process.StartInfo.ErrorDialog = false;
- //Process.Deta
- Process.StartInfo.RedirectStandardOutput = false;
- Process.StartInfo.RedirectStandardInput = true;
- Process.StartInfo.RedirectStandardError = false;
-
- //Process.StartInfo.FileName.CreateNoWindow = false;
- //Process.StartInfo.FileName = @"git.cmd";
- //Process.StartInfo.Arguments = "push origin refs/heads/master:refs/heads/master";//"git@github.com:spdr870/gitextensions.git";
- //Process.StartInfo.EnvironmentVariables.Add("ASK_PASS", "C:/Program Files/Git/libexec/git-core/git-gui--askpass");
- //Process.StartInfo.EnvironmentVariables.Add("SSH_ASKPASS", "C:/Program Files/Git/libexec/git-core/git-gui--askpass");
- //Process.StartInfo.EnvironmentVariables.Add("ASK_PASS", "C:/Program Files/Git/libexec/git-core/git-gui--askpass");
- //Process.StartInfo.EnvironmentVariables.Add("ASKPASS", "C:/Program Files/Git/libexec/git-core/git-gui--askpass");
- Process.StartInfo.EnvironmentVariables["DISPLAY"] = "x";
- //Process.StartInfo.EnvironmentVariables["HOME"] = "%USERPROFILE%";
- Process.StartInfo.EnvironmentVariables["SSH_ASKPASS"] = "C:/Program Files/Git/libexec/git-core/git-gui--askpass";
- Process.StartInfo.EnvironmentVariables["path"] = @"C:\Program Files\Git\cmd;C:\Program Files\Git\bin;C:\Program Files\Git\mingw\bin;%PATH%";
-
- foreach (DictionaryEntry key in Process.StartInfo.EnvironmentVariables)
- {
-
- }
-
- Process.StartInfo.FileName = @"C:\Program Files\Git\cmd\test.cmd";
- Process.StartInfo.Arguments = "";
-
-
- Process.StartInfo.WorkingDirectory = @"F:\GitExtensions\";
-
-
- Process.StartInfo.FileName = @"perl";//@"C:\Program Files\Git\cmd\test.cmd";
- Process.StartInfo.Arguments = @"c:\temp\p git@github.com";//"git@github.com:spdr870/gitextensions.git";
-
- Process.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
- Process.StartInfo.LoadUserProfile = true;
- Process.StartInfo.FileName = @"wish.exe";//@"C:\Program Files\Git\cmd\test.cmd";
- Process.StartInfo.Arguments = "\"C:/Program Files/Git/test.tlc\"";
- Process.StartInfo.FileName = @"C:\Program Files\Git\cmd\git.cmd";//@"C:\Program Files\Git\cmd\test.cmd";
- Process.StartInfo.Arguments = "push";
- Process.StartInfo.FileName = @"ssh.exe";//@"C:\Program Files\Git\cmd\test.cmd";
- Process.StartInfo.Arguments = "git@github.com";//"git@github.com:spdr870/gitextensions.git";
-
- Output = new StringBuilder();
- ErrorOutput = new StringBuilder();
-
- Process.OutputDataReceived += new System.Diagnostics.DataReceivedEventHandler(process_OutputDataReceived);
- Process.ErrorDataReceived += new System.Diagnostics.DataReceivedEventHandler(process_ErrorDataReceived);
-
- //Process.EnableRaisingEvents = true;
- //Process.Exited += new EventHandler(process_Exited);
- Process.Start();
- Process.StandardInput.Close();
- Process.Close();
-
- //Process.StandardInput.Close();
- //Process.StandardInput = null;
-
- //int n = 0;
- /*
- do
- {
- do{
- n = Process.StandardOutput.Read();
- Output.Append((char)n);
- } while (n > -1);
- do
- {
- n = Process.StandardError.Read();
- Output.Append((char)n);
- } while (n > -1);
- Output.Append((char)n);
- } while (n > -1);
- */
- //Process.BeginErrorReadLine();
- //Process.BeginOutputReadLine();
- //Process.WaitForExit();
- }
- }
-}
View
3 GitCommandTest/app.config
@@ -1,3 +0,0 @@
-<?xml version="1.0"?>
-<configuration>
-<startup><supportedRuntime version="v2.0.50727"/></startup></configuration>
View
50 GitCommands/TestProject1/GitCommandTest.csproj
@@ -1,50 +0,0 @@
-<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>9.0.30729</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>6a3564a3-9dfc-4d68-bb25-5fc065b16482</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>TestProject1</RootNamespace>
- <AssemblyName>TestProject1</AssemblyName>
- <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Release\</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="System" />
- <Reference Include="System.Core">
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <Compile Include="Properties\AssemblyInfo.cs" />
- </ItemGroup>
- <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- -->
-</Project>
View
35 GitCommands/TestProject1/Properties/AssemblyInfo.cs
@@ -1,35 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("TestProject1")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("TestProject1")]
-[assembly: AssemblyCopyright("Copyright © 2008")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM componenets. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("6a3564a3-9dfc-4d68-bb25-5fc065b16482")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Revision and Build Numbers
-// by using the '*' as shown below:
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
View
70 GitCommands/TestProject1/UnitTest1.cs
@@ -1,70 +0,0 @@
-using System;
-using System.Text;
-using System.Collections.Generic;
-using System.Linq;
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-
-namespace TestProject1
-{
- /// <summary>
- /// Summary description for UnitTest1
- /// </summary>
- [TestClass]
- public class UnitTest1
- {
- public UnitTest1()
- {
- //
- // TODO: Add constructor logic here
- //
- }
-
- private TestContext testContextInstance;
-
- /// <summary>
- ///Gets or sets the test context which provides
- ///information about and functionality for the current test run.
- ///</summary>
- public TestContext TestContext
- {
- get
- {
- return testContextInstance;
- }
- set
- {
- testContextInstance = value;
- }
- }
-
- #region Additional test attributes
- //
- // You can use the following additional attributes as you write your tests:
- //
- // Use ClassInitialize to run code before running the first test in the class
- // [ClassInitialize()]
- // public static void MyClassInitialize(TestContext testContext) { }
- //
- // Use ClassCleanup to run code after all tests in a class have run
- // [ClassCleanup()]
- // public static void MyClassCleanup() { }
- //
- // Use TestInitialize to run code before running each test
- // [TestInitialize()]
- // public void MyTestInitialize() { }
- //
- // Use TestCleanup to run code after each test has run
- // [TestCleanup()]
- // public void MyTestCleanup() { }
- //
- #endregion
-
- [TestMethod]
- public void TestMethod1()
- {
- //
- // TODO: Add test logic here
- //
- }
- }
-}

0 comments on commit 8b397b5

Please sign in to comment.
Something went wrong with that request. Please try again.