Skip to content

Commit bfcbc83

Browse files
Henk WesthuisHenk Westhuis
Henk Westhuis
authored and
Henk Westhuis
committedNov 27, 2008
added files
1 parent a6a4eab commit bfcbc83

File tree

115 files changed

+10195
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+10195
-0
lines changed
 

‎.gitignore

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
*.obj
2+
*.exe
3+
*.dll
4+
*.html
5+
*.exp
6+
*.pdb
7+
*.user
8+
*.aps
9+
*.pch
10+
*.rgs
11+
*.vspscc
12+
*.txt
13+
*_i.c
14+
*_p.c
15+
*.ncb
16+
*.suo
17+
*.tlb
18+
*.tlh
19+
*.bak
20+
*.cache
21+
*.ilk
22+
*.log
23+
*.htm
24+
*.zip
25+
[Dd]ebug/
26+
*.lib
27+
*.sbr
28+
[Ll]ib/
29+
[Rr]elease/
30+
[Dd]ebugInt/
31+
UMM/UMM448/IActivaplanner.h
32+
[Tt]est[Rr]esults/

‎GitCommandTest/CheckoutTest.cs

+79
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
using GitCommands;
2+
using Microsoft.VisualStudio.TestTools.UnitTesting;
3+
namespace GitCommandTest
4+
{
5+
6+
7+
/// <summary>
8+
///This is a test class for CheckoutTest and is intended
9+
///to contain all CheckoutTest Unit Tests
10+
///</summary>
11+
[TestClass()]
12+
public class CheckoutTest
13+
{
14+
15+
16+
private TestContext testContextInstance;
17+
18+
/// <summary>
19+
///Gets or sets the test context which provides
20+
///information about and functionality for the current test run.
21+
///</summary>
22+
public TestContext TestContext
23+
{
24+
get
25+
{
26+
return testContextInstance;
27+
}
28+
set
29+
{
30+
testContextInstance = value;
31+
}
32+
}
33+
34+
#region Additional test attributes
35+
//
36+
//You can use the following additional attributes as you write your tests:
37+
//
38+
//Use ClassInitialize to run code before running the first test in the class
39+
//[ClassInitialize()]
40+
//public static void MyClassInitialize(TestContext testContext)
41+
//{
42+
//}
43+
//
44+
//Use ClassCleanup to run code after all tests in a class have run
45+
//[ClassCleanup()]
46+
//public static void MyClassCleanup()
47+
//{
48+
//}
49+
//
50+
//Use TestInitialize to run code before running each test
51+
//[TestInitialize()]
52+
//public void MyTestInitialize()
53+
//{
54+
//}
55+
//
56+
//Use TestCleanup to run code after each test has run
57+
//[TestCleanup()]
58+
//public void MyTestCleanup()
59+
//{
60+
//}
61+
//
62+
#endregion
63+
64+
65+
/// <summary>
66+
///A test for Execute
67+
///</summary>
68+
[TestMethod()]
69+
public void ExecuteTest()
70+
{
71+
CheckoutDto dto = new CheckoutDto("master");
72+
73+
Checkout target = new Checkout(dto);
74+
target.Execute();
75+
76+
Assert.IsTrue(dto.Result.Length > 0, "Git checkout failed");
77+
}
78+
}
79+
}

0 commit comments

Comments
 (0)