Skip to content

Commit

Permalink
Fixed some spelling mistakes throughout the solution.
Browse files Browse the repository at this point in the history
  • Loading branch information
craigtp committed Sep 21, 2018
1 parent 9a6d030 commit 96e9e58
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 deletions.
34 changes: 17 additions & 17 deletions src/stampver.Tests/stampverTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ public void CallingStampverWithIncrementPatchCommand_IncrementsAndOutputsNewVers

// Assert
Assert.True(fakeIOWrapper.StdOutputLines.Count > 0);
TestHelpers.AssertContains(fakeIOWrapper.StdOutputLines, "1.0.1.0 (2 occurences in 1 file)");
TestHelpers.AssertContains(fakeIOWrapper.StdOutputLines, "1.0.1.0 (2 occurrences in 1 file)");
TestHelpers.AssertContains(fakeIOWrapper.FileLinesOutput, "[assembly: AssemblyVersion(\"1.0.1.0\")]");
TestHelpers.AssertContains(fakeIOWrapper.StdOutputLines, "1.3.1 (4 occurences in 2 files)");
TestHelpers.AssertContains(fakeIOWrapper.StdOutputLines, "1.3.1 (4 occurrences in 2 files)");
TestHelpers.AssertContains(fakeIOWrapper.FileLinesOutput, "[assembly: AssemblyVersion(\"1.3.1\")]");
}

Expand All @@ -159,9 +159,9 @@ public void CallingStampverWithIncrementBuildCommand_IncrementsAndOutputsNewVers

// Assert
Assert.True(fakeIOWrapper.StdOutputLines.Count > 0);
TestHelpers.AssertContains(fakeIOWrapper.StdOutputLines, "1.0.1.0 (2 occurences in 1 file)");
TestHelpers.AssertContains(fakeIOWrapper.StdOutputLines, "1.0.1.0 (2 occurrences in 1 file)");
TestHelpers.AssertContains(fakeIOWrapper.FileLinesOutput, "[assembly: AssemblyVersion(\"1.0.1.0\")]");
TestHelpers.AssertContains(fakeIOWrapper.StdOutputLines, "1.3.1 (4 occurences in 2 files)");
TestHelpers.AssertContains(fakeIOWrapper.StdOutputLines, "1.3.1 (4 occurrences in 2 files)");
TestHelpers.AssertContains(fakeIOWrapper.FileLinesOutput, "[assembly: AssemblyVersion(\"1.3.1\")]");
}

Expand All @@ -177,9 +177,9 @@ public void CallingStampverWithIncrementMinorCommand_IncrementsAndOutputsNewVers

// Assert
Assert.True(fakeIOWrapper.StdOutputLines.Count > 0);
TestHelpers.AssertContains(fakeIOWrapper.StdOutputLines, "1.1.0.0 (2 occurences in 1 file)");
TestHelpers.AssertContains(fakeIOWrapper.StdOutputLines, "1.1.0.0 (2 occurrences in 1 file)");
TestHelpers.AssertContains(fakeIOWrapper.FileLinesOutput, "[assembly: AssemblyVersion(\"1.1.0.0\")]");
TestHelpers.AssertContains(fakeIOWrapper.StdOutputLines, "1.4.0 (4 occurences in 2 files)");
TestHelpers.AssertContains(fakeIOWrapper.StdOutputLines, "1.4.0 (4 occurrences in 2 files)");
TestHelpers.AssertContains(fakeIOWrapper.FileLinesOutput, "[assembly: AssemblyVersion(\"1.4.0\")]");
}

Expand All @@ -195,9 +195,9 @@ public void CallingStampverWithIncrementMajorCommand_IncrementsAndOutputsNewVers

// Assert
Assert.True(fakeIOWrapper.StdOutputLines.Count > 0);
TestHelpers.AssertContains(fakeIOWrapper.StdOutputLines, "2.0.0.0 (2 occurences in 1 file)");
TestHelpers.AssertContains(fakeIOWrapper.StdOutputLines, "2.0.0.0 (2 occurrences in 1 file)");
TestHelpers.AssertContains(fakeIOWrapper.FileLinesOutput, "[assembly: AssemblyVersion(\"2.0.0.0\")]");
TestHelpers.AssertContains(fakeIOWrapper.StdOutputLines, "2.0.0 (4 occurences in 2 files)");
TestHelpers.AssertContains(fakeIOWrapper.StdOutputLines, "2.0.0 (4 occurrences in 2 files)");
TestHelpers.AssertContains(fakeIOWrapper.FileLinesOutput, "[assembly: AssemblyVersion(\"2.0.0\")]");
}

Expand Down Expand Up @@ -232,9 +232,9 @@ public void CallingStampverWithDecrementPatchCommand_IncrementsAndOutputsNewVers

// Assert
Assert.True(fakeIOWrapper.StdOutputLines.Count > 0);
TestHelpers.AssertContains(fakeIOWrapper.StdOutputLines, "1.0.0.0 (2 occurences in 1 file)");
TestHelpers.AssertContains(fakeIOWrapper.StdOutputLines, "1.0.0.0 (2 occurrences in 1 file)");
TestHelpers.AssertContains(fakeIOWrapper.FileLinesOutput, "[assembly: AssemblyVersion(\"1.0.0.0\")]");
TestHelpers.AssertContains(fakeIOWrapper.StdOutputLines, "1.3.0 (4 occurences in 2 files)");
TestHelpers.AssertContains(fakeIOWrapper.StdOutputLines, "1.3.0 (4 occurrences in 2 files)");
TestHelpers.AssertContains(fakeIOWrapper.FileLinesOutput, "[assembly: AssemblyVersion(\"1.3.0\")]");
}

Expand All @@ -250,9 +250,9 @@ public void CallingStampverWithDecrementBuildCommand_IncrementsAndOutputsNewVers

// Assert
Assert.True(fakeIOWrapper.StdOutputLines.Count > 0);
TestHelpers.AssertContains(fakeIOWrapper.StdOutputLines, "1.0.0.0 (2 occurences in 1 file)");
TestHelpers.AssertContains(fakeIOWrapper.StdOutputLines, "1.0.0.0 (2 occurrences in 1 file)");
TestHelpers.AssertContains(fakeIOWrapper.FileLinesOutput, "[assembly: AssemblyVersion(\"1.0.0.0\")]");
TestHelpers.AssertContains(fakeIOWrapper.StdOutputLines, "1.3.0 (4 occurences in 2 files)");
TestHelpers.AssertContains(fakeIOWrapper.StdOutputLines, "1.3.0 (4 occurrences in 2 files)");
TestHelpers.AssertContains(fakeIOWrapper.FileLinesOutput, "[assembly: AssemblyVersion(\"1.3.0\")]");
}

Expand All @@ -268,9 +268,9 @@ public void CallingStampverWithDecrementMinorCommand_IncrementsAndOutputsNewVers

// Assert
Assert.True(fakeIOWrapper.StdOutputLines.Count > 0);
TestHelpers.AssertContains(fakeIOWrapper.StdOutputLines, "1.0.0.0 (2 occurences in 1 file)");
TestHelpers.AssertContains(fakeIOWrapper.StdOutputLines, "1.0.0.0 (2 occurrences in 1 file)");
TestHelpers.AssertContains(fakeIOWrapper.FileLinesOutput, "[assembly: AssemblyVersion(\"1.0.0.0\")]");
TestHelpers.AssertContains(fakeIOWrapper.StdOutputLines, "1.2.0 (4 occurences in 2 files)");
TestHelpers.AssertContains(fakeIOWrapper.StdOutputLines, "1.2.0 (4 occurrences in 2 files)");
TestHelpers.AssertContains(fakeIOWrapper.FileLinesOutput, "[assembly: AssemblyVersion(\"1.2.0\")]");
}

Expand All @@ -286,9 +286,9 @@ public void CallingStampverWithDecrementMajorCommand_IncrementsAndOutputsNewVers

// Assert
Assert.True(fakeIOWrapper.StdOutputLines.Count > 0);
TestHelpers.AssertContains(fakeIOWrapper.StdOutputLines, "0.0.0.0 (2 occurences in 1 file)");
TestHelpers.AssertContains(fakeIOWrapper.StdOutputLines, "0.0.0.0 (2 occurrences in 1 file)");
TestHelpers.AssertContains(fakeIOWrapper.FileLinesOutput, "[assembly: AssemblyVersion(\"0.0.0.0\")]");
TestHelpers.AssertContains(fakeIOWrapper.StdOutputLines, "0.3.0 (4 occurences in 2 files)");
TestHelpers.AssertContains(fakeIOWrapper.StdOutputLines, "0.3.0 (4 occurrences in 2 files)");
TestHelpers.AssertContains(fakeIOWrapper.FileLinesOutput, "[assembly: AssemblyVersion(\"0.3.0\")]");
}

Expand Down Expand Up @@ -323,7 +323,7 @@ public void CallingStampverWithExplicitVersionCommandAndValidVersionNumber_SetVe

// Assert
Assert.True(fakeIOWrapper.StdOutputLines.Count > 0);
TestHelpers.AssertContains(fakeIOWrapper.StdOutputLines, "5.6.7 (6 occurences in 3 files)");
TestHelpers.AssertContains(fakeIOWrapper.StdOutputLines, "5.6.7 (6 occurrences in 3 files)");
TestHelpers.AssertContains(fakeIOWrapper.FileLinesOutput, "[assembly: AssemblyVersion(\"5.6.7\")]");
}

Expand Down
2 changes: 1 addition & 1 deletion src/stampver/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Craig Phillips")]
[assembly: AssemblyProduct("stampver")]
[assembly: AssemblyCopyright("Copyright © 2017")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[assembly: AssemblyTrademark("Craig Phillips")]
[assembly: AssemblyCulture("")]

Expand Down
12 changes: 6 additions & 6 deletions src/stampver/Stampver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ public void Run()
{
{"i=", "command to increment the version number", v => versionArgs.SetIncrement(v) },
{"d=", "command to decrement the version number", v => versionArgs.SetDecrement(v) },
{"e=", "command to explicly set the complete version number", v => versionArgs.SetExplicit(v) },
{"e=", "command to explicitly set the complete version number", v => versionArgs.SetExplicit(v) },
{"quiet", "do not output anything to the console", v => versionArgs.SetQuiet() },
{"verbose", "output verbose information to the console", v => versionArgs.SetVerbose() },
{"dryrun", "perform a dryrun and don't update any files", v => versionArgs.SetDryrun() },
{"dryrun", "perform a dry run and don't update any files", v => versionArgs.SetDryrun() },
{"help", "command to increment the version number", v => versionArgs.SetDisplayHelp() }
};

Expand Down Expand Up @@ -93,8 +93,8 @@ public void Run()
// We're neither in quiet mode nor verbose mode, so output all new
// version numbers generated along with the occurence count and file count.
// i.e.
// v0.3.0 (2 occurences in 1 file)
// v1.0.1 (4 occurences in 2 files)
// v0.3.0 (2 occurrences in 1 file)
// v1.0.1 (4 occurrences in 2 files)
// v1.1.0 (1 occurence in 1 file)
var results = updatedVersionNumbers.GroupBy(v => v)
.Select(v => new { VersionNumber = v.Key.Item1, FileName = v.Key.Item2, CountVers = v.Count() })
Expand All @@ -108,7 +108,7 @@ public void Run()
_ioWrapper.WriteToStdOut(string.Format("{0} ({1} {2} in {3} {4})",
result.VersionNumber,
result.OccurenceCount,
result.OccurenceCount > 1 ? "occurences" : "occurence",
result.OccurenceCount > 1 ? "occurrences" : "occurence",
result.FileCount,
result.FileCount > 1 ? "files" : "file"));
}
Expand Down Expand Up @@ -199,7 +199,7 @@ version number part.
Note that the specific version number parameter value (x.y.z) is only usable
with the -e command, and the MAJOR, MINOR and PATCH/BUILD parameter values are
only usable with the -i or -d commands. Attemping to use commands and version
only usable with the -i or -d commands. Attempting to use commands and version
parameters that are incompatible will cause the program to display an error.
Additional commands that can be specified are as follows:
Expand Down

0 comments on commit 96e9e58

Please sign in to comment.