Skip to content
This repository was archived by the owner on Jun 27, 2019. It is now read-only.

Commit 71b4941

Browse files
Removed file headers
1 parent a3f04af commit 71b4941

24 files changed

+22
-356
lines changed
Lines changed: 1 addition & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -1,118 +1,10 @@
1-
// --------------------------------------------------------------------------------------------------------------------
2-
// <copyright file="ArgumentParserFacts.cs" company="GitTools">
3-
// Copyright (c) 2014 - 2015 GitTools. All rights reserved.
4-
// </copyright>
5-
// --------------------------------------------------------------------------------------------------------------------
6-
7-
81
namespace GitTools.Tests
92
{
10-
using Catel.Test;
113
using NUnit.Framework;
124

135
[TestFixture]
146
public class ArgumentParserFacts
157
{
16-
//[TestCase]
17-
//public void ThrowsExceptionForEmptyParameters()
18-
//{
19-
// ExceptionTester.CallMethodAndExpectException<GitLinkException>(() => ArgumentParser.ParseArguments(string.Empty));
20-
//}
21-
22-
//[TestCase]
23-
//public void CorrectlyParsesSolutionDirectory()
24-
//{
25-
// var context = ArgumentParser.ParseArguments("solutionDirectory -u http://github.com/CatenaLogic/GitLink");
26-
27-
// Assert.AreEqual("solutionDirectory", context.SolutionDirectory);
28-
//}
29-
30-
//[TestCase]
31-
//public void CorrectlyParsesLogFilePath()
32-
//{
33-
// var context = ArgumentParser.ParseArguments("solutionDirectory -l logFilePath");
34-
35-
// Assert.AreEqual("solutionDirectory", context.SolutionDirectory);
36-
// Assert.AreEqual("logFilePath", context.LogFile);
37-
//}
38-
39-
//[TestCase]
40-
//public void CorrectlyParsesHelp()
41-
//{
42-
// var context = ArgumentParser.ParseArguments("-h");
43-
44-
// Assert.IsTrue(context.IsHelp);
45-
//}
46-
47-
//[TestCase]
48-
//public void CorrectlyParsesSolutionFile()
49-
//{
50-
// var context = ArgumentParser.ParseArguments("solutionDirectory -u http://github.com/CatenaLogic/GitLink -f someSolution");
51-
52-
// Assert.AreEqual("someSolution", context.SolutionFile);
53-
//}
54-
55-
//[TestCase]
56-
//public void CorrectlyParsesUrlAndBranchName()
57-
//{
58-
// var context = ArgumentParser.ParseArguments("solutionDirectory -u http://github.com/CatenaLogic/GitLink -b somebranch");
59-
60-
// Assert.AreEqual("solutionDirectory", context.SolutionDirectory);
61-
// Assert.AreEqual("http://github.com/CatenaLogic/GitLink", context.TargetUrl);
62-
// Assert.AreEqual("somebranch", context.TargetBranch);
63-
//}
64-
65-
//[TestCase]
66-
//public void CorrectlyParsesUrlAndConfiguration()
67-
//{
68-
// var context = ArgumentParser.ParseArguments("solutionDirectory -u http://github.com/CatenaLogic/GitLink -c someConfiguration");
69-
70-
// Assert.AreEqual("solutionDirectory", context.SolutionDirectory);
71-
// Assert.AreEqual("http://github.com/CatenaLogic/GitLink", context.TargetUrl);
72-
// Assert.AreEqual("someConfiguration", context.ConfigurationName);
73-
//}
74-
75-
//[TestCase]
76-
//public void CorrectlyParsesUrlAndConfigurationAndPlatform()
77-
//{
78-
// var context = ArgumentParser.ParseArguments("solutionDirectory -u http://github.com/CatenaLogic/GitLink -c someConfiguration -p \"Any CPU\"");
79-
80-
// Assert.AreEqual("solutionDirectory", context.SolutionDirectory);
81-
// Assert.AreEqual("http://github.com/CatenaLogic/GitLink", context.TargetUrl);
82-
// Assert.AreEqual("someConfiguration", context.ConfigurationName);
83-
// Assert.AreEqual("Any CPU", context.PlatformName);
84-
//}
85-
86-
//[TestCase]
87-
//public void CorrectlyParsesUrlAndConfigurationWithDebug()
88-
//{
89-
// var context = ArgumentParser.ParseArguments("solutionDirectory -u http://github.com/CatenaLogic/GitLink -debug -c someConfiguration");
90-
91-
// Assert.AreEqual("solutionDirectory", context.SolutionDirectory);
92-
// Assert.AreEqual("http://github.com/CatenaLogic/GitLink", context.TargetUrl);
93-
// Assert.AreEqual("someConfiguration", context.ConfigurationName);
94-
// Assert.IsTrue(context.IsDebug);
95-
//}
96-
97-
//[TestCase]
98-
//public void CorrectlyParsesIgnoredProjects()
99-
//{
100-
// var context = ArgumentParser.ParseArguments("solutionDirectory -u http://github.com/CatenaLogic/GitLink -debug -c someConfiguration -ignore test1,test2");
101-
102-
// Assert.AreEqual("solutionDirectory", context.SolutionDirectory);
103-
// Assert.AreEqual("http://github.com/CatenaLogic/GitLink", context.TargetUrl);
104-
// Assert.AreEqual("someConfiguration", context.ConfigurationName);
105-
// Assert.IsTrue(context.IsDebug);
106-
107-
// Assert.AreEqual(2, context.IgnoredProjects.Count);
108-
// Assert.AreEqual("test1", context.IgnoredProjects[0]);
109-
// Assert.AreEqual("test2", context.IgnoredProjects[1]);
110-
//}
111-
112-
//[TestCase]
113-
//public void ThrowsExceptionForUnknownArgument()
114-
//{
115-
// ExceptionTester.CallMethodAndExpectException<GitLinkException>(() => ArgumentParser.ParseArguments("solutionDirectory -x logFilePath"));
116-
//}
8+
1179
}
11810
}

src/GitTools.Core.Tests/Context/Context.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
// --------------------------------------------------------------------------------------------------------------------
2-
// <copyright file="Context.cs" company="GitTools">
3-
// Copyright (c) 2014 - 2015 GitTools. All rights reserved.
4-
// </copyright>
5-
// --------------------------------------------------------------------------------------------------------------------
6-
7-
8-
namespace GitTools.Tests
1+
namespace GitTools.Tests
92
{
103
public class Context : ContextBase
114
{
Lines changed: 1 addition & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
1-
// --------------------------------------------------------------------------------------------------------------------
2-
// <copyright file="ContextFacts.cs" company="GitTools">
3-
// Copyright (c) 2014 - 2015 GitTools. All rights reserved.
4-
// </copyright>
5-
// --------------------------------------------------------------------------------------------------------------------
6-
7-
8-
namespace GitTools.Tests
1+
namespace GitTools.Tests
92
{
10-
using System;
11-
using Catel.Test;
123
using NUnit.Framework;
134

145
public class ContextFacts
@@ -25,70 +16,5 @@ public void SetsRightDefaultValues()
2516
Assert.IsFalse(context.IsHelp);
2617
}
2718
}
28-
29-
//[TestFixture]
30-
//public class TheValidateContextMethod
31-
//{
32-
// [TestCase]
33-
// public void ThrowsExceptionForMissingSolutionDirectory()
34-
// {
35-
// var context = new Context();
36-
37-
// ExceptionTester.CallMethodAndExpectException<GitLinkException>(() => context.ValidateContext());
38-
// }
39-
40-
// [TestCase]
41-
// public void ThrowsExceptionForMissingConfigurationName()
42-
// {
43-
// var context = new Context(new ProviderManager())
44-
// {
45-
// SolutionDirectory = @"c:\source\GitLink",
46-
// ConfigurationName = string.Empty
47-
// };
48-
49-
// ExceptionTester.CallMethodAndExpectException<GitLinkException>(() => context.ValidateContext());
50-
// }
51-
52-
// [TestCase]
53-
// public void ThrowsExceptionForMissingTargetUrl()
54-
// {
55-
// var context = new Context(new ProviderManager())
56-
// {
57-
// SolutionDirectory = @"c:\source\GitLink",
58-
// };
59-
60-
// ExceptionTester.CallMethodAndExpectException<GitLinkException>(() => context.ValidateContext());
61-
// }
62-
63-
// [TestCase]
64-
// public void SucceedsForValidContext()
65-
// {
66-
// var context = new Context(new ProviderManager())
67-
// {
68-
// SolutionDirectory = @"c:\source\GitLink",
69-
// TargetUrl = "https://github.com/CatenaLogic/GitLink",
70-
// };
71-
72-
// // should not throw
73-
// context.ValidateContext();
74-
// }
75-
76-
// [TestCase(@".", @"c:\")]
77-
// [TestCase(@"C:\MyDirectory\", @"C:\MyDirectory\")]
78-
// [TestCase(@"C:\MyDirectory\..", @"C:\")]
79-
// [TestCase(@"C:\MyDirectory\..\TestDirectory\", @"C:\TestDirectory\")]
80-
// public void ExpandsDirectoryIfRequired(string solutionDirectory, string expectedValue)
81-
// {
82-
// Environment.CurrentDirectory = @"c:\";
83-
84-
// var context = new Context(new ProviderManager());
85-
// context.TargetUrl = "https://github.com/CatenaLogic/GitLink.git";
86-
// context.SolutionDirectory = solutionDirectory;
87-
88-
// context.ValidateContext();
89-
90-
// Assert.AreEqual(expectedValue, context.SolutionDirectory);
91-
// }
92-
//}
9319
}
9420
}

src/GitTools.Core.Tests/GlobalInitialization.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
// --------------------------------------------------------------------------------------------------------------------
2-
// <copyright file="GlobalInitialization.cs" company="GitTools">
3-
// Copyright (c) 2014 - 2015 GitTools. All rights reserved.
4-
// </copyright>
5-
// --------------------------------------------------------------------------------------------------------------------
6-
7-
8-
using Catel.Logging;
1+
using Catel.Logging;
92
using NUnit.Framework;
103

114
[SetUpFixture]

src/GitTools.Core.sln.DotSettings

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -400,11 +400,7 @@ II.2.12 &lt;HandlesEvent /&gt;&#xD;
400400
</s:String>
401401
<s:String x:Key="/Default/CodeStyle/CSharpMemberOrderPattern/LayoutType/@EntryValue">CustomLayout</s:String>
402402
<s:Boolean x:Key="/Default/CodeStyle/CSharpUsing/AddImportsToDeepestScope/@EntryValue">True</s:Boolean>
403-
<s:String x:Key="/Default/CodeStyle/FileHeader/FileHeaderText/@EntryValue">--------------------------------------------------------------------------------------------------------------------&#xD;
404-
&lt;copyright file="$FILENAME$" company="GitTools"&gt;&#xD;
405-
Copyright (c) 2014 - $CURRENT_YEAR$ GitTools. All rights reserved.&#xD;
406-
&lt;/copyright&gt;&#xD;
407-
--------------------------------------------------------------------------------------------------------------------</s:String>
403+
408404
<s:String x:Key="/Default/CodeStyle/Naming/JavaScriptNaming/UserRules/=JS_005FCONSTRUCTOR/@EntryIndexedValue">&lt;Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /&gt;</s:String>
409405
<s:String x:Key="/Default/CodeStyle/Naming/JavaScriptNaming/UserRules/=JS_005FFUNCTION/@EntryIndexedValue">&lt;Policy Inspect="True" Prefix="" Suffix="" Style="aaBb" /&gt;</s:String>
410406
<s:String x:Key="/Default/CodeStyle/Naming/JavaScriptNaming/UserRules/=JS_005FGLOBAL_005FVARIABLE/@EntryIndexedValue">&lt;Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /&gt;</s:String>

src/GitTools.Core/Constants.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
// --------------------------------------------------------------------------------------------------------------------
2-
// <copyright file="Constants.cs" company="GitTools">
3-
// Copyright (c) 2014 - 2015 GitTools. All rights reserved.
4-
// </copyright>
5-
// --------------------------------------------------------------------------------------------------------------------
6-
7-
8-
namespace GitTools
1+
namespace GitTools
92
{
103
// TODO: Constants go here
114
}

src/GitTools.Core/Context/ContextBase.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
// --------------------------------------------------------------------------------------------------------------------
2-
// <copyright file="ContextBase.cs" company="GitTools">
3-
// Copyright (c) 2014 - 2015 GitTools. All rights reserved.
4-
// </copyright>
5-
// --------------------------------------------------------------------------------------------------------------------
6-
7-
8-
namespace GitTools
1+
namespace GitTools
92
{
103
public abstract class ContextBase : IContext
114
{

src/GitTools.Core/Context/Interfaces/IAuthenticationContext.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
// --------------------------------------------------------------------------------------------------------------------
2-
// <copyright file="IAuthenticationContext.cs" company="GitTools">
3-
// Copyright (c) 2014 - 2015 GitTools. All rights reserved.
4-
// </copyright>
5-
// --------------------------------------------------------------------------------------------------------------------
6-
7-
8-
namespace GitTools
1+
namespace GitTools
92
{
103
public interface IAuthenticationContext
114
{
Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
1-
// --------------------------------------------------------------------------------------------------------------------
2-
// <copyright file="IContext.cs" company="GitTools">
3-
// Copyright (c) 2014 - 2015 GitTools. All rights reserved.
4-
// </copyright>
5-
// --------------------------------------------------------------------------------------------------------------------
6-
7-
8-
namespace GitTools
1+
namespace GitTools
92
{
103
public interface IContext
114
{
125
bool IsHelp { get; set; }
13-
146
IRepositoryContext Repository { get; set; }
157
}
168
}

src/GitTools.Core/Context/Interfaces/IRepositoryContext.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
// --------------------------------------------------------------------------------------------------------------------
2-
// <copyright file="IContext.cs" company="GitTools">
3-
// Copyright (c) 2014 - 2015 GitTools. All rights reserved.
4-
// </copyright>
5-
// --------------------------------------------------------------------------------------------------------------------
6-
7-
8-
namespace GitTools
1+
namespace GitTools
92
{
103
public interface IRepositoryContext : IAuthenticationContext
114
{

src/GitTools.Core/Context/RepositoryContext.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
// --------------------------------------------------------------------------------------------------------------------
2-
// <copyright file="RepositoryContext.cs" company="GitTools">
3-
// Copyright (c) 2014 - 2015 GitTools. All rights reserved.
4-
// </copyright>
5-
// --------------------------------------------------------------------------------------------------------------------
6-
7-
8-
namespace GitTools
1+
namespace GitTools
92
{
103
public class RepositoryContext : IRepositoryContext
114
{

src/GitTools.Core/Exceptions/GitToolsException.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
// --------------------------------------------------------------------------------------------------------------------
2-
// <copyright file="GitToolsException.cs" company="GitTools">
3-
// Copyright (c) 2014 - 2015 GitTools. All rights reserved.
4-
// </copyright>
5-
// --------------------------------------------------------------------------------------------------------------------
6-
7-
8-
namespace GitTools
1+
namespace GitTools
92
{
103
using System;
114

src/GitTools.Core/Extensions/IntExtensions.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
// --------------------------------------------------------------------------------------------------------------------
2-
// <copyright file="IntExtensions.cs" company="CatenaLogic">
3-
// Copyright (c) 2014 - 2014 CatenaLogic. All rights reserved.
4-
// </copyright>
5-
// --------------------------------------------------------------------------------------------------------------------
6-
7-
81
namespace GitTools
92
{
103
public static class ExtensionMethods

src/GitTools.Core/Extensions/LibGitExtensions.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
// --------------------------------------------------------------------------------------------------------------------
2-
// <copyright file="LibGitExtensions.cs" company="GitTools">
3-
// Copyright (c) 2014 - 2015 GitTools. All rights reserved.
4-
// </copyright>
5-
// --------------------------------------------------------------------------------------------------------------------
6-
7-
8-
namespace GitTools
1+
namespace GitTools
92
{
103
using System;
114
using System.Collections.Generic;

src/GitTools.Core/Extensions/StringExtensions.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
// --------------------------------------------------------------------------------------------------------------------
2-
// <copyright file="StringExtensions.cs" company="GitTools">
3-
// Copyright (c) 2014 - 2015 GitTools. All rights reserved.
4-
// </copyright>
5-
// --------------------------------------------------------------------------------------------------------------------
6-
7-
8-
namespace GitTools
1+
namespace GitTools
92
{
103
using Catel;
114

src/GitTools.Core/Git/GitDirFinder.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
// --------------------------------------------------------------------------------------------------------------------
2-
// <copyright file="GitDirFinder.cs" company="GitTools">
3-
// Copyright (c) 2014 - 2015 GitTools. All rights reserved.
4-
// </copyright>
5-
// --------------------------------------------------------------------------------------------------------------------
6-
7-
8-
namespace GitTools.Git
1+
namespace GitTools.Git
92
{
103
using System.IO;
114
using LibGit2Sharp;

0 commit comments

Comments
 (0)