Permalink
Browse files

Moving samples to a separate project hosted on GitHub: http://github.…

  • Loading branch information...
1 parent 61a5eae commit 2a6c95850269bb033806c53b87a8ee235457f87f jbandi committed Mar 26, 2010
Showing with 4 additions and 2,556 deletions.
  1. +0 −10 Samples/BowlingKata - MsTest/Bowling.SpecFlow/App.config
  2. +0 −83 Samples/BowlingKata - MsTest/Bowling.SpecFlow/Bowling.SpecFlow.csproj
  3. +0 −92 Samples/BowlingKata - MsTest/Bowling.SpecFlow/BowlingSteps.cs
  4. +0 −35 Samples/BowlingKata - MsTest/Bowling.SpecFlow/Properties/AssemblyInfo.cs
  5. +0 −38 Samples/BowlingKata - MsTest/Bowling.SpecFlow/ScoreCalculation.feature
  6. +0 −166 Samples/BowlingKata - MsTest/Bowling.SpecFlow/ScoreCalculation.feature.cs
  7. +0 −43 Samples/BowlingKata - MsTest/Bowling.SpecFlow/ScoreCalculationAlternatives.feature
  8. +0 −151 Samples/BowlingKata - MsTest/Bowling.SpecFlow/ScoreCalculationAlternatives.feature.cs
  9. +0 −35 Samples/BowlingKata - MsTest/Bowling.sln
  10. +0 −6 Samples/BowlingKata - MsTest/Bowling.vsmdi
  11. +0 −59 Samples/BowlingKata - MsTest/Bowling/Bowling.csproj
  12. +0 −67 Samples/BowlingKata - MsTest/Bowling/Game.cs
  13. +0 −36 Samples/BowlingKata - MsTest/Bowling/Properties/AssemblyInfo.cs
  14. +0 −5 Samples/BowlingKata - MsTest/LocalTestRun.testrunconfig
  15. +0 −21 Samples/BowlingKata - XUnit/Bowling.Specflow/App.config
  16. +0 −95 Samples/BowlingKata - XUnit/Bowling.Specflow/Bowling.Specflow.csproj
  17. +0 −93 Samples/BowlingKata - XUnit/Bowling.Specflow/BowlingSteps.cs
  18. +0 −36 Samples/BowlingKata - XUnit/Bowling.Specflow/Properties/AssemblyInfo.cs
  19. +0 −42 Samples/BowlingKata - XUnit/Bowling.Specflow/ScoreCalculationAlternativesFeature.feature
  20. +0 −170 Samples/BowlingKata - XUnit/Bowling.Specflow/ScoreCalculationAlternativesFeature.feature.cs
  21. +0 −37 Samples/BowlingKata - XUnit/Bowling.Specflow/ScoreCalculationFeature.feature
  22. +0 −185 Samples/BowlingKata - XUnit/Bowling.Specflow/ScoreCalculationFeature.feature.cs
  23. +0 −26 Samples/BowlingKata - XUnit/Bowling.sln
  24. +0 −59 Samples/BowlingKata - XUnit/Bowling/Bowling.csproj
  25. +0 −67 Samples/BowlingKata - XUnit/Bowling/Game.cs
  26. +0 −36 Samples/BowlingKata - XUnit/Bowling/Properties/AssemblyInfo.cs
  27. +0 −21 Samples/BowlingKata/Bowling.Specflow/App.config
  28. +0 −94 Samples/BowlingKata/Bowling.Specflow/Bowling.Specflow.csproj
  29. +0 −93 Samples/BowlingKata/Bowling.Specflow/BowlingSteps.cs
  30. +0 −36 Samples/BowlingKata/Bowling.Specflow/Properties/AssemblyInfo.cs
  31. +0 −38 Samples/BowlingKata/Bowling.Specflow/ScoreCalculation.feature
  32. +0 −188 Samples/BowlingKata/Bowling.Specflow/ScoreCalculation.feature.cs
  33. +0 −43 Samples/BowlingKata/Bowling.Specflow/ScoreCalculationAlternatives.feature
  34. +0 −162 Samples/BowlingKata/Bowling.Specflow/ScoreCalculationAlternatives.feature.cs
  35. +0 −26 Samples/BowlingKata/Bowling.sln
  36. +0 −59 Samples/BowlingKata/Bowling/Bowling.csproj
  37. +0 −67 Samples/BowlingKata/Bowling/Game.cs
  38. +0 −36 Samples/BowlingKata/Bowling/Properties/AssemblyInfo.cs
  39. +4 −0 Samples/Readme.txt
@@ -1,10 +0,0 @@
-<?xml version="1.0" encoding="utf-8" ?>
-<configuration>
- <configSections>
- <section name="specFlow" type="TechTalk.SpecFlow.Configuration.ConfigurationSectionHandler, TechTalk.SpecFlow"/>
- </configSections>
-
- <specFlow>
- <unitTestProvider name="MsTest" />
- </specFlow>
-</configuration>
@@ -1,83 +0,0 @@
-<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>9.0.30729</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{04D53AE6-D834-434F-8A29-2A4D8787F581}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>Bowling.SpecFlow</RootNamespace>
- <AssemblyName>Bowling.SpecFlow</AssemblyName>
- <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
- <FileAlignment>512</FileAlignment>
- <ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Release\</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
- <Reference Include="System" />
- <Reference Include="System.Core">
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
- </Reference>
- <Reference Include="TechTalk.SpecFlow, Version=1.0.2.0, Culture=neutral, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>C:\Program Files\TechTalk\SpecFlow\TechTalk.SpecFlow.dll</HintPath>
- </Reference>
- </ItemGroup>
- <ItemGroup>
- <Compile Include="BowlingSteps.cs" />
- <Compile Include="Properties\AssemblyInfo.cs" />
- <Compile Include="ScoreCalculation.feature.cs">
- <AutoGen>True</AutoGen>
- <DesignTime>True</DesignTime>
- <DependentUpon>ScoreCalculation.feature</DependentUpon>
- </Compile>
- <Compile Include="ScoreCalculationAlternatives.feature.cs">
- <AutoGen>True</AutoGen>
- <DesignTime>True</DesignTime>
- <DependentUpon>ScoreCalculationAlternatives.feature</DependentUpon>
- </Compile>
- </ItemGroup>
- <ItemGroup>
- <None Include="App.config" />
- <None Include="ScoreCalculation.feature">
- <Generator>SpecFlowSingleFileGenerator</Generator>
- <LastGenOutput>ScoreCalculation.feature.cs</LastGenOutput>
- </None>
- <None Include="ScoreCalculationAlternatives.feature">
- <Generator>SpecFlowSingleFileGenerator</Generator>
- <LastGenOutput>ScoreCalculationAlternatives.feature.cs</LastGenOutput>
- </None>
- </ItemGroup>
- <ItemGroup>
- <ProjectReference Include="..\Bowling\Bowling.csproj">
- <Project>{B065A18E-57BD-4399-AAF7-BD2FA0147FCB}</Project>
- <Name>Bowling</Name>
- </ProjectReference>
- </ItemGroup>
- <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- -->
-</Project>
@@ -1,92 +0,0 @@
-using Microsoft.VisualStudio.TestTools.UnitTesting;
-using TechTalk.SpecFlow;
-
-namespace Bowling.Specflow
-{
- [Binding]
- public class BowlingSteps
- {
- private Game _game;
-
- [Given(@"a new bowling game")]
- public void GivenANewBowlingGame()
- {
- _game = new Game();
- }
-
- [When(@"all of my balls are landing in the gutter")]
- public void WhenAllOfMyBallsAreLandingInTheGutter()
- {
- for (int i = 0; i < 20; i++)
- {
- _game.Roll(0);
- }
- }
-
- [When(@"all of my rolls are strikes")]
- public void WhenAllOfMyRollsAreStrikes()
- {
- for (int i = 0; i < 12; i++)
- {
- _game.Roll(10);
- }
- }
-
- [Then(@"my total score should be (\d+)")]
- public void ThenMyTotalScoreShouldBe(int score)
- {
- Assert.AreEqual(score, _game.Score);
- }
-
- [When(@"I roll (\d+)")]
- public void WhenIRoll(int pins)
- {
- _game.Roll(pins);
- }
-
- [When(@"I roll (\d+) and (\d+)")]
- public void WhenIRoll(int pins1, int pins2)
- {
- _game.Roll(pins1);
- _game.Roll(pins2);
- }
-
-// [When(@"(\d+) times I roll (\d+) and (\d+)")]
-// public void WhenIRollSeveralTimes(int rollCount, int pins1, int pins2)
-// {
-// for (int i = 0; i < rollCount; i++)
-// {
-// _game.Roll(pins1);
-// _game.Roll(pins2);
-// }
-// }
-
- [When(@"I roll (\d+) times (\d+) and (\d+)")]
- public void WhenIRollSeveralTimes2(int rollCount, int pins1, int pins2)
- {
- for (int i = 0; i < rollCount; i++)
- {
- _game.Roll(pins1);
- _game.Roll(pins2);
- }
- }
-
- [When(@"I roll the following series:(.*)")]
- public void WhenIRollTheFollowingSeries(string series)
- {
- foreach (var roll in series.Trim().Split(','))
- {
- _game.Roll(int.Parse(roll));
- }
- }
-
- [When(@"I roll")]
- public void WhenIRoll(Table rolls)
- {
- foreach (var row in rolls.Rows)
- {
- _game.Roll(int.Parse(row["Pins"]));
- }
- }
- }
-}
@@ -1,35 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("Bowling.SpecFlow")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("Bowling.SpecFlow")]
-[assembly: AssemblyCopyright("Copyright © 2009")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM componenets. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("01e9aaa1-56e3-4cf9-9800-95ecdbd23963")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Revision and Build Numbers
-// by using the '*' as shown below:
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
@@ -1,38 +0,0 @@
-Feature: Score Calculation
- In order to know my performance
- As a player
- I want the system to calculate my total score
-
-Scenario: Gutter game
- Given a new bowling game
- When all of my balls are landing in the gutter
- Then my total score should be 0
-
-Scenario: Beginners game
- Given a new bowling game
- When I roll 2 and 7
- And I roll 3 and 4
- And I roll 8 times 1 and 1
- Then my total score should be 32
-
-Scenario: Another beginners game
- Given a new bowling game
- When I roll the following series: 2,7,3,4,1,1,5,1,1,1,1,1,1,1,1,1,1,1,5,1
- Then my total score should be 40
-
-Scenario: All Strikes
- Given a new bowling game
- When all of my rolls are strikes
- Then my total score should be 300
-
-Scenario: One single spare
- Given a new bowling game
- When I roll the following series: 2,8,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
- Then my total score should be 29
-
-Scenario: All spares
- Given a new bowling game
- When I roll 10 times 1 and 9
- And I roll 1
- Then my total score should be 110
-
Oops, something went wrong.

0 comments on commit 2a6c958

Please sign in to comment.