Permalink
Browse files

Initial Implementation w/passing test

We're taking the simple approach of gettign functionality in place. The test drives the implementation. We're not demonstrating TDD by the book.

With this, we can now start to refactor and microObjectify the code.
  • Loading branch information...
Fyzxs committed Jun 15, 2018
1 parent c43e6c9 commit 67f288b146275bb77af429e0990a580263f2b6d6
Showing with 24 additions and 5 deletions.
  1. +19 −0 AddTwoInts/AddTwoIntsTests.cs
  2. +5 −5 MicroObjectsTeachYourself.sln
@@ -5,5 +5,24 @@ namespace AddTwoInts
[TestClass]
public class AddTwoIntsTests
{
[TestMethod, TestCategory("unit")]
public void ShouldReturnSumOfTwoInts()
{
//Arrange
int expected = 9;
int augend = 4;
int addend = 5;

//Act
int actual = Sum(augend, addend);

//Assert
Assert.AreEqual(expected, actual);
}

private int Sum(int augend, int addend)
{
return augend + addend;
}
}
}
@@ -3,18 +3,18 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27703.2000
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AddTwoInts", "..\AddTwoInts\AddTwoInts.csproj", "{8BC8C8DB-EA30-4526-B0B5-76205C617781}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AddTwoInts", "AddTwoInts\AddTwoInts.csproj", "{E96DCAC5-2AF5-4C7C-8655-AF2BD5372C51}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{8BC8C8DB-EA30-4526-B0B5-76205C617781}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8BC8C8DB-EA30-4526-B0B5-76205C617781}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8BC8C8DB-EA30-4526-B0B5-76205C617781}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8BC8C8DB-EA30-4526-B0B5-76205C617781}.Release|Any CPU.Build.0 = Release|Any CPU
{E96DCAC5-2AF5-4C7C-8655-AF2BD5372C51}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E96DCAC5-2AF5-4C7C-8655-AF2BD5372C51}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E96DCAC5-2AF5-4C7C-8655-AF2BD5372C51}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E96DCAC5-2AF5-4C7C-8655-AF2BD5372C51}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

0 comments on commit 67f288b

Please sign in to comment.