Skip to content

Commit d5c05fc

Browse files
authored
Merge pull request #931 from JakeGinnivan/SpellingFix
Fixed typo
2 parents ce9ef68 + eaa5d95 commit d5c05fc

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/GitVersionTask.Tests/InvalidFileCheckerTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public void VerifyAttributeFoundCSharp([Values("AssemblyVersion", "AssemblyFileV
5858
}
5959

6060
var ex = Assert.Throws<WarningException>(() => InvalidFileChecker.CheckForInvalidFiles(new ITaskItem[] { new MockTaskItem { ItemSpec = "AssemblyInfo.cs" } }, projectFile), attribute);
61-
Assert.That(ex.Message, Is.EqualTo("File contains assembly version attributes with conflict with the attributes generated by GitVersion AssemblyInfo.cs"));
61+
Assert.That(ex.Message, Is.EqualTo("File contains assembly version attributes which conflict with the attributes generated by GitVersion AssemblyInfo.cs"));
6262
}
6363

6464
[Test]
@@ -76,7 +76,7 @@ public void VerifyUnformattedAttributeFoundCSharp([Values("AssemblyVersion", "As
7676
}
7777

7878
var ex = Assert.Throws<WarningException>(() => InvalidFileChecker.CheckForInvalidFiles(new ITaskItem[] { new MockTaskItem { ItemSpec = "AssemblyInfo.cs" } }, projectFile), attribute);
79-
Assert.That(ex.Message, Is.EqualTo("File contains assembly version attributes with conflict with the attributes generated by GitVersion AssemblyInfo.cs"));
79+
Assert.That(ex.Message, Is.EqualTo("File contains assembly version attributes which conflict with the attributes generated by GitVersion AssemblyInfo.cs"));
8080
}
8181

8282
[Test]
@@ -146,7 +146,7 @@ Imports System.Reflection
146146
}
147147

148148
var ex = Assert.Throws<WarningException>(() => InvalidFileChecker.CheckForInvalidFiles(new ITaskItem[] { new MockTaskItem { ItemSpec = "AssemblyInfo.vb" } }, projectFile), attribute);
149-
Assert.That(ex.Message, Is.EqualTo("File contains assembly version attributes with conflict with the attributes generated by GitVersion AssemblyInfo.vb"));
149+
Assert.That(ex.Message, Is.EqualTo("File contains assembly version attributes which conflict with the attributes generated by GitVersion AssemblyInfo.vb"));
150150
}
151151

152152
[Test]
@@ -164,7 +164,7 @@ Imports System.Reflection
164164
}
165165

166166
var ex = Assert.Throws<WarningException>(() => InvalidFileChecker.CheckForInvalidFiles(new ITaskItem[] { new MockTaskItem { ItemSpec = "AssemblyInfo.vb" } }, projectFile), attribute);
167-
Assert.That(ex.Message, Is.EqualTo("File contains assembly version attributes with conflict with the attributes generated by GitVersion AssemblyInfo.vb"));
167+
Assert.That(ex.Message, Is.EqualTo("File contains assembly version attributes which conflict with the attributes generated by GitVersion AssemblyInfo.vb"));
168168
}
169169

170170
[Test]

src/GitVersionTask/InvalidFileChecker.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public static void CheckForInvalidFiles(IEnumerable<ITaskItem> compileFiles, str
1818
{
1919
foreach (var compileFile in GetInvalidFiles(compileFiles, projectFile))
2020
{
21-
throw new WarningException("File contains assembly version attributes with conflict with the attributes generated by GitVersion " + compileFile);
21+
throw new WarningException("File contains assembly version attributes which conflict with the attributes generated by GitVersion " + compileFile);
2222
}
2323
}
2424

@@ -33,7 +33,7 @@ static bool FileContainsVersionAttribute(string compileFile, string projectFile)
3333
return languageSpecificFileContainsVersionAttribute(compileFile, projectFile);
3434
}
3535

36-
throw new WarningException("File with name containing AssemblyInfo could not be checked for assembly version attributes with conflict with the attributes generated by GitVersion " + compileFile);
36+
throw new WarningException("File with name containing AssemblyInfo could not be checked for assembly version attributes which conflict with the attributes generated by GitVersion " + compileFile);
3737
}
3838

3939
static bool CSharpFileContainsVersionAttribute(string compileFile, string projectFile)

0 commit comments

Comments
 (0)