Skip to content

Commit

Permalink
Update MsTest sample to VS2010 & .NET 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gasparnagy committed Apr 4, 2011
1 parent fea0376 commit 35ad476
Show file tree
Hide file tree
Showing 36 changed files with 528 additions and 118 deletions.
1 change: 1 addition & 0 deletions BowlingKata/BowlingKata-MsTest/Bowling.SpecFlow/App.config
Expand Up @@ -5,6 +5,7 @@
</configSections>

<specFlow>
<!-- For additional details on SpecFlow configuration options see https://github.com/techtalk/SpecFlow/wiki/Configuration -->
<unitTestProvider name="MsTest" />
</specFlow>
</configuration>
@@ -1,15 +1,17 @@
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" 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>
<ProductVersion>
</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{04D53AE6-D834-434F-8A29-2A4D8787F581}</ProjectGuid>
<ProjectGuid>{F402481E-9694-40AB-A185-CC8A331B783B}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Bowling.SpecFlow</RootNamespace>
<AssemblyName>Bowling.SpecFlow</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
</PropertyGroup>
Expand All @@ -31,16 +33,20 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.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.2.0.0, Culture=neutral, PublicKeyToken=0778194805d6db41, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>$(ProgramFiles)\TechTalk\SpecFlow\TechTalk.SpecFlow.dll</HintPath>
<Reference Include="TechTalk.SpecFlow">
<HintPath>..\packages\SpecFlow.1.5.0\lib\NET35\TechTalk.SpecFlow.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<CodeAnalysisDependentAssemblyPaths Condition=" '$(VS100COMNTOOLS)' != '' " Include="$(VS100COMNTOOLS)..\IDE\PrivateAssemblies">
<Visible>False</Visible>
</CodeAnalysisDependentAssemblyPaths>
</ItemGroup>
<ItemGroup>
<Compile Include="BowlingSteps.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
Expand All @@ -57,6 +63,7 @@
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="packages.config" />
<None Include="ScoreCalculation.feature">
<Generator>SpecFlowSingleFileGenerator</Generator>
<LastGenOutput>ScoreCalculation.feature.cs</LastGenOutput>
Expand All @@ -68,7 +75,7 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Bowling\Bowling.csproj">
<Project>{B065A18E-57BD-4399-AAF7-BD2FA0147FCB}</Project>
<Project>{290E32E6-7521-47BA-884A-0A90A985CC2C}</Project>
<Name>Bowling</Name>
</ProjectReference>
</ItemGroup>
Expand Down
Expand Up @@ -8,19 +8,19 @@
[assembly: AssemblyTitle("Bowling.SpecFlow")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("Bowling.SpecFlow")]
[assembly: AssemblyCopyright("Copyright © 2009")]
[assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
[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
// to COM components. 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")]
[assembly: Guid("b8af1875-0491-4c78-9b94-2ef7224caad4")]

// Version information for an assembly consists of the following four values:
//
Expand All @@ -29,7 +29,7 @@
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
@@ -1,7 +1,7 @@
Feature: Score Calculation
In order to know my performance
As a player
I want the system to calculate my total score
So that I know my performance

Scenario: Gutter game
Given a new bowling game
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

@@ -1,7 +1,7 @@
Feature: Score Calculation (alternative forms)
In order to know my performance
As a player
I want the system to calculate my total score
So that I know my performance


Scenario: One single spare
Expand Down Expand Up @@ -41,3 +41,12 @@ Scenario: Yet another beginners game
| 1 |
Then my total score should be 43

Scenario Outline: Score calculation tables
Given a new bowling game
When I roll the following series: <rolls>
Then my total score should be <total score>

Examples:
| game | rolls | total score |
| beginners game | 2,7,3,4,1,1,5,1,1,1,1,1,1,1,1,1,1,1,5,1 | 40 |
| one single spare | 2,8,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 | 29 |

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="SpecFlow" version="1.5.0" />
</packages>

0 comments on commit 35ad476

Please sign in to comment.