diff --git a/TDD-Katas-project/.nuget/NuGet.Config b/TDD-Katas-project/.nuget/NuGet.Config
new file mode 100644
index 0000000..67f8ea0
--- /dev/null
+++ b/TDD-Katas-project/.nuget/NuGet.Config
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/TDD-Katas-project/.nuget/NuGet.exe b/TDD-Katas-project/.nuget/NuGet.exe
new file mode 100644
index 0000000..3ffdd33
Binary files /dev/null and b/TDD-Katas-project/.nuget/NuGet.exe differ
diff --git a/TDD-Katas-project/.nuget/NuGet.targets b/TDD-Katas-project/.nuget/NuGet.targets
new file mode 100644
index 0000000..f943812
--- /dev/null
+++ b/TDD-Katas-project/.nuget/NuGet.targets
@@ -0,0 +1,144 @@
+
+
+
+ $(MSBuildProjectDirectory)\..\
+
+
+ false
+
+
+ false
+
+
+ true
+
+
+ false
+
+
+
+
+
+
+
+
+
+
+ $([System.IO.Path]::Combine($(SolutionDir), ".nuget"))
+
+
+
+
+ $(SolutionDir).nuget
+
+
+
+ $(MSBuildProjectDirectory)\packages.$(MSBuildProjectName.Replace(' ', '_')).config
+ $(MSBuildProjectDirectory)\packages.$(MSBuildProjectName).config
+
+
+
+ $(MSBuildProjectDirectory)\packages.config
+ $(PackagesProjectConfig)
+
+
+
+
+ $(NuGetToolsPath)\NuGet.exe
+ @(PackageSource)
+
+ "$(NuGetExePath)"
+ mono --runtime=v4.0.30319 $(NuGetExePath)
+
+ $(TargetDir.Trim('\\'))
+
+ -RequireConsent
+ -NonInteractive
+
+ "$(SolutionDir) "
+ "$(SolutionDir)"
+
+
+ $(NuGetCommand) install "$(PackagesConfig)" -source "$(PackageSources)" $(NonInteractiveSwitch) $(RequireConsentSwitch) -solutionDir $(PaddedSolutionDir)
+ $(NuGetCommand) pack "$(ProjectPath)" -Properties "Configuration=$(Configuration);Platform=$(Platform)" $(NonInteractiveSwitch) -OutputDirectory "$(PackageOutputDir)" -symbols
+
+
+
+ RestorePackages;
+ $(BuildDependsOn);
+
+
+
+
+ $(BuildDependsOn);
+ BuildPackage;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/TDD-Katas-project/TDD-Katas-project.sln b/TDD-Katas-project/TDD-Katas-project.sln
index 96f59e7..44e19aa 100644
--- a/TDD-Katas-project/TDD-Katas-project.sln
+++ b/TDD-Katas-project/TDD-Katas-project.sln
@@ -1,8 +1,17 @@
Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 2012
+# Visual Studio 2013
+VisualStudioVersion = 12.0.30110.0
+MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TDD-Katas-project", "TDD-Katas-project\TDD-Katas-project.csproj", "{BEDADFEE-66FB-41D8-8D09-3C6D9EFB1C90}"
EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{20BCFD29-EEB5-4E64-B01A-507A39E02806}"
+ ProjectSection(SolutionItems) = preProject
+ .nuget\NuGet.Config = .nuget\NuGet.Config
+ .nuget\NuGet.exe = .nuget\NuGet.exe
+ .nuget\NuGet.targets = .nuget\NuGet.targets
+ EndProjectSection
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
diff --git a/TDD-Katas-project/TDD-Katas-project/BowlingGame/TestGame.cs b/TDD-Katas-project/TDD-Katas-project/BowlingGame/TestGame.cs
index cb33937..0e75219 100644
--- a/TDD-Katas-project/TDD-Katas-project/BowlingGame/TestGame.cs
+++ b/TDD-Katas-project/TDD-Katas-project/BowlingGame/TestGame.cs
@@ -32,7 +32,7 @@ public void TearDown()
public void Can_Get_Calculate_Single_Scores()
{
_game.Roll(0);
- Console.WriteLine(string.Format("Roll Total - {0}, Result - {1}", 0, _game.Score()));
+ Console.WriteLine("Roll Total - {0}, Result - {1}", 0, _game.Score());
Assert.That(0, Is.EqualTo(_game.Score()));
}
[Test]
@@ -41,7 +41,7 @@ public void Can_Get_Calculate_Spare_Scores()
RollSpare();
_game.Roll(3);
FrameHits(0, 17);
- Console.WriteLine(string.Format("Roll Total - {0}, Result - {1}", 16, _game.Score()));
+ Console.WriteLine("Roll Total - {0}, Result - {1}", 16, _game.Score());
Assert.That(16, Is.EqualTo(_game.Score()));
}
[Test]
@@ -51,7 +51,7 @@ public void Can_Get_Calculate_Strike_Scores()
_game.Roll(3);
_game.Roll(4);
FrameHits(0, 16);
- Console.WriteLine(string.Format("Roll Total - {0}, Result - {1}", 24, _game.Score()));
+ Console.WriteLine("Roll Total - {0}, Result - {1}", 24, _game.Score());
Assert.That(24, Is.EqualTo(_game.Score()));
}
@@ -66,7 +66,7 @@ public void Can_Get_Calculate_Scores()
public void Can_Get_Calculate_Full_Game_Scores()
{
FrameHits(10, 12);
- Console.WriteLine(string.Format("Roll Total - {0}, Result - {1}", 300, _game.Score()));
+ Console.WriteLine("Roll Total - {0}, Result - {1}", 300, _game.Score());
Assert.That(300, Is.EqualTo(_game.Score()));
}
#endregion
diff --git a/TDD-Katas-project/TDD-Katas-project/FizzBuzzKata/FizzBuzz.cs b/TDD-Katas-project/TDD-Katas-project/FizzBuzzKata/FizzBuzz.cs
index 5ecd0a0..1a513bf 100644
--- a/TDD-Katas-project/TDD-Katas-project/FizzBuzzKata/FizzBuzz.cs
+++ b/TDD-Katas-project/TDD-Katas-project/FizzBuzzKata/FizzBuzz.cs
@@ -1,5 +1,4 @@
using System;
-using System.Collections.Generic;
using System.Globalization;
using System.Linq;
diff --git a/TDD-Katas-project/TDD-Katas-project/FizzBuzzKata/TestFizzBuzz.cs b/TDD-Katas-project/TDD-Katas-project/FizzBuzzKata/TestFizzBuzz.cs
index 3c45578..ae4bb4c 100644
--- a/TDD-Katas-project/TDD-Katas-project/FizzBuzzKata/TestFizzBuzz.cs
+++ b/TDD-Katas-project/TDD-Katas-project/FizzBuzzKata/TestFizzBuzz.cs
@@ -8,7 +8,6 @@ namespace TDD_Katas_project.FizzBuzzKata
public class TestFizzBuzz
{
#region Private members
- //private string _result;
private string _resultFizz;
#endregion
@@ -21,7 +20,6 @@ public void Setup()
[TestFixtureTearDown]
public void TearDown()
{
- //_result = null;
_resultFizz = null;
}
#endregion
diff --git a/TDD-Katas-project/TDD-Katas-project/OddEvenKata/TestOddEven.cs b/TDD-Katas-project/TDD-Katas-project/OddEvenKata/TestOddEven.cs
index 8ced787..f1a4bad 100644
--- a/TDD-Katas-project/TDD-Katas-project/OddEvenKata/TestOddEven.cs
+++ b/TDD-Katas-project/TDD-Katas-project/OddEvenKata/TestOddEven.cs
@@ -12,7 +12,7 @@ public class TestOddEven
[TestCase(5, 150)]
public void CanPrintOddEven(int startRange, int endRange)
{
- string result = OddEven.PrintOddEven(startRange, endRange);
+ var result = OddEven.PrintOddEven(startRange, endRange);
Assert.NotNull(result, string.Format("{0}", result));
}
@@ -25,7 +25,7 @@ public void CanPrintOddEven(int startRange, int endRange)
[TestCase(10, "Even")]
public void CanPrintOddEvenForSingleNumber(int number, string expectedresult)
{
- string actualresult = OddEven.PrintSingleOddEven(number);
+ var actualresult = OddEven.PrintSingleOddEven(number);
Assert.That(expectedresult, Is.EqualTo(actualresult),
string.Format("result of entered number [{0}] is [{1}] but it should be [{2}]", number,
actualresult, expectedresult));
diff --git a/TDD-Katas-project/TDD-Katas-project/TDD-Katas-project.csproj b/TDD-Katas-project/TDD-Katas-project/TDD-Katas-project.csproj
index 6613d34..688aca6 100644
--- a/TDD-Katas-project/TDD-Katas-project/TDD-Katas-project.csproj
+++ b/TDD-Katas-project/TDD-Katas-project/TDD-Katas-project.csproj
@@ -12,6 +12,8 @@
TDD-Katas-project
v4.0
512
+ ..\
+ true
true
@@ -84,6 +86,13 @@
+
+
+
+ This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
+
+
+