albacore 0.2.0.preview1 → 0.2.0.preview2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (167) hide show
  1. data/README.markdown +7 -2
  2. data/VERSION +1 -1
  3. data/install_dependencies.rb +1 -1
  4. data/lib/albacore.rb +6 -17
  5. data/lib/albacore/albacoretask.rb +43 -0
  6. data/lib/albacore/assemblyinfo.rb +10 -7
  7. data/lib/albacore/config/assemblyinfoconfig.rb +4 -12
  8. data/lib/albacore/config/config.rb +16 -8
  9. data/lib/albacore/config/cscconfig.rb +2 -7
  10. data/lib/albacore/config/docuconfig.rb +3 -5
  11. data/lib/albacore/config/execconfig.rb +4 -11
  12. data/lib/albacore/config/msbuildconfig.rb +2 -5
  13. data/lib/albacore/config/mspectestrunnerconfig.rb +15 -0
  14. data/lib/albacore/config/nantconfig.rb +4 -11
  15. data/lib/albacore/config/ncoverconsoleconfig.rb +4 -11
  16. data/lib/albacore/config/ncoverreportconfig.rb +4 -11
  17. data/lib/albacore/config/ndependconfig.rb +4 -11
  18. data/lib/albacore/config/netversion.rb +0 -2
  19. data/lib/albacore/config/nunittestrunnerconfig.rb +14 -0
  20. data/lib/albacore/config/specflowreportconfig.rb +2 -5
  21. data/lib/albacore/config/sqlcmdconfig.rb +4 -11
  22. data/lib/albacore/config/unzipconfig.rb +4 -11
  23. data/lib/albacore/config/xbuildconfig.rb +4 -11
  24. data/lib/albacore/config/xunittestrunnerconfig.rb +15 -0
  25. data/lib/albacore/config/zipdirectoryconfig.rb +15 -0
  26. data/lib/albacore/csc.rb +31 -5
  27. data/lib/albacore/docu.rb +2 -3
  28. data/lib/albacore/exec.rb +3 -5
  29. data/lib/albacore/msbuild.rb +3 -3
  30. data/lib/albacore/mspectestrunner.rb +5 -6
  31. data/lib/albacore/nant.rb +4 -6
  32. data/lib/albacore/ncoverconsole.rb +4 -6
  33. data/lib/albacore/ncoverreport.rb +4 -6
  34. data/lib/albacore/ncoverreports/codecoveragebase.rb +2 -2
  35. data/lib/albacore/ncoverreports/cyclomaticcomplexity.rb +2 -2
  36. data/lib/albacore/ncoverreports/fullcoveragereport.rb +0 -8
  37. data/lib/albacore/ncoverreports/reportfilterbase.rb +2 -2
  38. data/lib/albacore/ncoverreports/summaryreport.rb +0 -4
  39. data/lib/albacore/ndepend.rb +4 -6
  40. data/lib/albacore/nunittestrunner.rb +4 -5
  41. data/lib/albacore/specflowreport.rb +2 -2
  42. data/lib/albacore/sqlcmd.rb +33 -11
  43. data/lib/albacore/support/createtask.rb +30 -0
  44. data/lib/albacore/support/runcommand.rb +21 -30
  45. data/lib/albacore/support/updateattributes.rb +13 -0
  46. data/lib/albacore/unzip.rb +3 -5
  47. data/lib/albacore/xbuild.rb +5 -6
  48. data/lib/albacore/xunittestrunner.rb +4 -5
  49. data/lib/albacore/zipdirectory.rb +5 -6
  50. data/rakefile.rb +7 -8
  51. data/spec/albacoremodel_spec.rb +20 -2
  52. data/spec/assemblyinfo_spec.rb +27 -14
  53. data/spec/config_spec.rb +17 -2
  54. data/spec/createtask_spec.rb +51 -28
  55. data/spec/csc_spec.rb +135 -3
  56. data/spec/docu_spec.rb +11 -14
  57. data/spec/exec_spec.rb +1 -1
  58. data/spec/msbuild_spec.rb +9 -9
  59. data/spec/nant_spec.rb +4 -4
  60. data/spec/ncoverconsole_spec.rb +13 -13
  61. data/spec/ncoverreport_spec.rb +17 -17
  62. data/spec/ndepend_spec.rb +6 -6
  63. data/spec/runcommand_spec.rb +22 -3
  64. data/spec/sqlcmd_spec.rb +154 -12
  65. data/spec/support/assemblyinfotester.rb +1 -1
  66. data/spec/support/spec_helper.rb +2 -2
  67. data/spec/yamlconfig_spec.rb +3 -3
  68. data/spec/zip_spec.rb +4 -4
  69. metadata +32 -119
  70. data/lib/albacore/albacoremodel.rb +0 -28
  71. data/lib/albacore/config/mspecconfig.rb +0 -21
  72. data/lib/albacore/config/nunitconfig.rb +0 -20
  73. data/lib/albacore/config/xunitconfig.rb +0 -22
  74. data/lib/albacore/config/zipconfig.rb +0 -22
  75. data/lib/rake/assemblyinfotask.rb +0 -3
  76. data/lib/rake/csctask.rb +0 -3
  77. data/lib/rake/docutask.rb +0 -3
  78. data/lib/rake/exectask.rb +0 -3
  79. data/lib/rake/msbuildtask.rb +0 -3
  80. data/lib/rake/mspectask.rb +0 -3
  81. data/lib/rake/nanttask.rb +0 -3
  82. data/lib/rake/ncoverconsoletask.rb +0 -3
  83. data/lib/rake/ncoverreporttask.rb +0 -3
  84. data/lib/rake/ndependtask.rb +0 -3
  85. data/lib/rake/nunittask.rb +0 -3
  86. data/lib/rake/specflowreporttask.rb +0 -3
  87. data/lib/rake/sqlcmdtask.rb +0 -3
  88. data/lib/rake/support/albacoretask.rb +0 -30
  89. data/lib/rake/support/createtask.rb +0 -21
  90. data/lib/rake/unziptask.rb +0 -3
  91. data/lib/rake/xbuildtask.rb +0 -7
  92. data/lib/rake/xunittask.rb +0 -3
  93. data/lib/rake/ziptask.rb +0 -3
  94. data/spec/assemblyinfotask_spec.rb +0 -32
  95. data/spec/csctask_spec.rb +0 -1
  96. data/spec/docutask_spec.rb +0 -52
  97. data/spec/exectask_spec.rb +0 -46
  98. data/spec/msbuildtask_spec.rb +0 -46
  99. data/spec/mspectask_spec.rb +0 -46
  100. data/spec/nanttask_spec.rb +0 -46
  101. data/spec/ncoverconsoletask_spec.rb +0 -46
  102. data/spec/ncoverreporttask_spec.rb +0 -46
  103. data/spec/ndependtask_spec.rb +0 -46
  104. data/spec/nunittask_spec.rb +0 -46
  105. data/spec/spec.opts +0 -1
  106. data/spec/specflowreporttask_spec.rb +0 -48
  107. data/spec/sqlcmdtask_spec.rb +0 -32
  108. data/spec/support/AssemblyInfo/assemblyinfo.yml +0 -2
  109. data/spec/support/CodeCoverage/mspec/assemblies/Machine.Specifications.NUnit.dll +0 -0
  110. data/spec/support/CodeCoverage/mspec/assemblies/Machine.Specifications.dll +0 -0
  111. data/spec/support/CodeCoverage/mspec/assemblies/TestSolution.MSpecTests.dll +0 -0
  112. data/spec/support/CodeCoverage/mspec/assemblies/TestSolution.dll +0 -0
  113. data/spec/support/CodeCoverage/mspec/assemblies/nunit.framework.dll +0 -0
  114. data/spec/support/CodeCoverage/nunit/assemblies/TestSolution.Tests.dll +0 -0
  115. data/spec/support/CodeCoverage/nunit/assemblies/TestSolution.dll +0 -0
  116. data/spec/support/CodeCoverage/nunit/assemblies/nunit.framework.dll +0 -0
  117. data/spec/support/CodeCoverage/nunit/assemblies/with spaces/TestSolution.Tests.dll +0 -0
  118. data/spec/support/CodeCoverage/nunit/assemblies/with spaces/TestSolution.dll +0 -0
  119. data/spec/support/CodeCoverage/nunit/assemblies/with spaces/nunit.framework.dll +0 -0
  120. data/spec/support/CodeCoverage/nunit/failing_assemblies/TestSolution.FailingTests.dll +0 -0
  121. data/spec/support/CodeCoverage/nunit/failing_assemblies/nunit.framework.dll +0 -0
  122. data/spec/support/CodeCoverage/report/coverage.xml +0 -4578
  123. data/spec/support/CodeCoverage/xunit/assemblies/TestSolution.XUnitTests.dll +0 -0
  124. data/spec/support/CodeCoverage/xunit/assemblies/TestSolution.dll +0 -0
  125. data/spec/support/CodeCoverage/xunit/assemblies/xunit.dll +0 -0
  126. data/spec/support/CodeCoverage/xunit/assemblies/xunit.xml +0 -2306
  127. data/spec/support/SpecFlow/TechTalk.SpecFlow.dll +0 -0
  128. data/spec/support/SpecFlow/TestSolution.SpecFlow.dll +0 -0
  129. data/spec/support/SpecFlow/TestSolution.SpecFlow.pdb +0 -0
  130. data/spec/support/SpecFlow/TestSolution.dll +0 -0
  131. data/spec/support/SpecFlow/TestSolution.pdb +0 -0
  132. data/spec/support/SpecFlow/nunit.framework.dll +0 -0
  133. data/spec/support/TestSolution/NDependProject.xml +0 -315
  134. data/spec/support/TestSolution/TestSolution.5.0.ReSharper.user +0 -27
  135. data/spec/support/TestSolution/TestSolution.FailingTests/FailingTestFixture.cs +0 -19
  136. data/spec/support/TestSolution/TestSolution.FailingTests/Properties/AssemblyInfo.cs +0 -36
  137. data/spec/support/TestSolution/TestSolution.FailingTests/TestSolution.FailingTests.csproj +0 -63
  138. data/spec/support/TestSolution/TestSolution.MSpecTests/Properties/AssemblyInfo.cs +0 -36
  139. data/spec/support/TestSolution/TestSolution.MSpecTests/SomeSpecTest.cs +0 -18
  140. data/spec/support/TestSolution/TestSolution.MSpecTests/TestSolution.MSpecTests.csproj +0 -77
  141. data/spec/support/TestSolution/TestSolution.SpecFlow/OneFeature.feature +0 -8
  142. data/spec/support/TestSolution/TestSolution.SpecFlow/OneFeature.feature.cs +0 -73
  143. data/spec/support/TestSolution/TestSolution.SpecFlow/Properties/AssemblyInfo.cs +0 -36
  144. data/spec/support/TestSolution/TestSolution.SpecFlow/StepDefinition.cs +0 -30
  145. data/spec/support/TestSolution/TestSolution.SpecFlow/TestSolution.SpecFlow.csproj +0 -84
  146. data/spec/support/TestSolution/TestSolution.Tests/Properties/AssemblyInfo.cs +0 -36
  147. data/spec/support/TestSolution/TestSolution.Tests/SomeTestFixture.cs +0 -23
  148. data/spec/support/TestSolution/TestSolution.Tests/TestSolution.Tests.csproj +0 -69
  149. data/spec/support/TestSolution/TestSolution.XUnitTests/Class1.cs +0 -19
  150. data/spec/support/TestSolution/TestSolution.XUnitTests/FailingTestFixture.cs +0 -14
  151. data/spec/support/TestSolution/TestSolution.XUnitTests/Properties/AssemblyInfo.cs +0 -36
  152. data/spec/support/TestSolution/TestSolution.XUnitTests/TestSolution.XUnitTests.csproj +0 -70
  153. data/spec/support/TestSolution/TestSolution.build +0 -25
  154. data/spec/support/TestSolution/TestSolution.sln +0 -50
  155. data/spec/support/TestSolution/TestSolution/Class1.cs +0 -17
  156. data/spec/support/TestSolution/TestSolution/Properties/AssemblyInfo.cs +0 -36
  157. data/spec/support/TestSolution/TestSolution/TestSolution.csproj +0 -59
  158. data/spec/support/csc/File1.cs +0 -9
  159. data/spec/support/csc/File2.cs +0 -9
  160. data/spec/support/csc/output/ignorethis.txt +0 -1
  161. data/spec/support/test.yml +0 -4
  162. data/spec/support/yamlconfig/msbuild.yml +0 -5
  163. data/spec/support/yamlconfig/yaml_autoconfig_test.yml +0 -1
  164. data/spec/support/zip/files/subfolder/sub file.txt +0 -1
  165. data/spec/support/zip/files/testfile.txt +0 -1
  166. data/spec/xunittask_spec.rb +0 -32
  167. data/spec/ziptask_spec.rb +0 -33
@@ -1,36 +0,0 @@
1
- using System.Reflection;
2
- using System.Runtime.CompilerServices;
3
- using System.Runtime.InteropServices;
4
-
5
- // General Information about an assembly is controlled through the following
6
- // set of attributes. Change these attribute values to modify the information
7
- // associated with an assembly.
8
- [assembly: AssemblyTitle("TestSolution.MSpecTests")]
9
- [assembly: AssemblyDescription("")]
10
- [assembly: AssemblyConfiguration("")]
11
- [assembly: AssemblyCompany("")]
12
- [assembly: AssemblyProduct("TestSolution.MSpecTests")]
13
- [assembly: AssemblyCopyright("Copyright © 2009")]
14
- [assembly: AssemblyTrademark("")]
15
- [assembly: AssemblyCulture("")]
16
-
17
- // Setting ComVisible to false makes the types in this assembly not visible
18
- // to COM components. If you need to access a type in this assembly from
19
- // COM, set the ComVisible attribute to true on that type.
20
- [assembly: ComVisible(false)]
21
-
22
- // The following GUID is for the ID of the typelib if this project is exposed to COM
23
- [assembly: Guid("aae4bb3d-ba7f-41fb-ad97-e74e652e6e07")]
24
-
25
- // Version information for an assembly consists of the following four values:
26
- //
27
- // Major Version
28
- // Minor Version
29
- // Build Number
30
- // Revision
31
- //
32
- // You can specify all the values or you can default the Build and Revision Numbers
33
- // by using the '*' as shown below:
34
- // [assembly: AssemblyVersion("1.0.*")]
35
- [assembly: AssemblyVersion("1.0.0.0")]
36
- [assembly: AssemblyFileVersion("1.0.0.0")]
@@ -1,18 +0,0 @@
1
- using Machine.Specifications;
2
-
3
- namespace TestSolution.MSpecTests
4
- {
5
-
6
- [Subject("some spec test")]
7
- public class SomeSpecTest
8
- {
9
- private static Class1 someclass;
10
- private static string foo;
11
-
12
- private Establish context = () => { someclass = new Class1(); };
13
-
14
- private Because of = () => { foo = someclass.Foo(); };
15
-
16
- private It should_be_the_right_string = () => foo.ShouldEqual("bar");
17
- }
18
- }
@@ -1,77 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
- <PropertyGroup>
4
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6
- <ProductVersion>9.0.30729</ProductVersion>
7
- <SchemaVersion>2.0</SchemaVersion>
8
- <ProjectGuid>{DC8BF855-3A09-4349-8A66-C20AF0EA00DF}</ProjectGuid>
9
- <OutputType>Library</OutputType>
10
- <AppDesignerFolder>Properties</AppDesignerFolder>
11
- <RootNamespace>TestSolution.MSpecTests</RootNamespace>
12
- <AssemblyName>TestSolution.MSpecTests</AssemblyName>
13
- <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
14
- <FileAlignment>512</FileAlignment>
15
- </PropertyGroup>
16
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
17
- <DebugSymbols>true</DebugSymbols>
18
- <DebugType>full</DebugType>
19
- <Optimize>false</Optimize>
20
- <OutputPath>bin\Debug\</OutputPath>
21
- <DefineConstants>DEBUG;TRACE</DefineConstants>
22
- <ErrorReport>prompt</ErrorReport>
23
- <WarningLevel>4</WarningLevel>
24
- </PropertyGroup>
25
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
26
- <DebugType>pdbonly</DebugType>
27
- <Optimize>true</Optimize>
28
- <OutputPath>bin\Release\</OutputPath>
29
- <DefineConstants>TRACE</DefineConstants>
30
- <ErrorReport>prompt</ErrorReport>
31
- <WarningLevel>4</WarningLevel>
32
- </PropertyGroup>
33
- <ItemGroup>
34
- <Reference Include="Machine.Specifications, Version=0.2.0.0, Culture=neutral, processorArchitecture=MSIL">
35
- <SpecificVersion>False</SpecificVersion>
36
- <HintPath>..\..\Tools\Machine.Specification-v0.2\Machine.Specifications.dll</HintPath>
37
- </Reference>
38
- <Reference Include="Machine.Specifications.NUnit, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
39
- <SpecificVersion>False</SpecificVersion>
40
- <HintPath>..\..\Tools\Machine.Specification-v0.2\Machine.Specifications.NUnit.dll</HintPath>
41
- </Reference>
42
- <Reference Include="nunit.framework, Version=2.4.6.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
43
- <SpecificVersion>False</SpecificVersion>
44
- <HintPath>..\..\Tools\Machine.Specification-v0.2\nunit.framework.dll</HintPath>
45
- </Reference>
46
- <Reference Include="System" />
47
- <Reference Include="System.Core">
48
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
49
- </Reference>
50
- <Reference Include="System.Xml.Linq">
51
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
52
- </Reference>
53
- <Reference Include="System.Data.DataSetExtensions">
54
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
55
- </Reference>
56
- <Reference Include="System.Data" />
57
- <Reference Include="System.Xml" />
58
- </ItemGroup>
59
- <ItemGroup>
60
- <Compile Include="Properties\AssemblyInfo.cs" />
61
- <Compile Include="SomeSpecTest.cs" />
62
- </ItemGroup>
63
- <ItemGroup>
64
- <ProjectReference Include="..\TestSolution\TestSolution.csproj">
65
- <Project>{36F8C06F-3BBA-4D11-9333-83573A760284}</Project>
66
- <Name>TestSolution</Name>
67
- </ProjectReference>
68
- </ItemGroup>
69
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
70
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
71
- Other similar extension points exist, see Microsoft.Common.targets.
72
- <Target Name="BeforeBuild">
73
- </Target>
74
- <Target Name="AfterBuild">
75
- </Target>
76
- -->
77
- </Project>
@@ -1,8 +0,0 @@
1
- Feature: Test to test the runner
2
- In order to verify that the albacore runner runs
3
- I need to write some specs
4
-
5
- Scenario: Check for the mighty Foo
6
- Given I create a Class1
7
- When I call Foo
8
- Then I should get "bar"
@@ -1,73 +0,0 @@
1
- // ------------------------------------------------------------------------------
2
- // <auto-generated>
3
- // This code was generated by SpecFlow (http://www.specflow.org/).
4
- // SpecFlow Version:1.3.0.0
5
- // Runtime Version:2.0.50727.4927
6
- //
7
- // Changes to this file may cause incorrect behavior and will be lost if
8
- // the code is regenerated.
9
- // </auto-generated>
10
- // ------------------------------------------------------------------------------
11
- #region Designer generated code
12
- namespace TestSolution.SpecFlow
13
- {
14
- using TechTalk.SpecFlow;
15
-
16
-
17
- [System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "1.3.0.0")]
18
- [System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
19
- [NUnit.Framework.TestFixtureAttribute()]
20
- [NUnit.Framework.DescriptionAttribute("Test to test the runner")]
21
- public partial class TestToTestTheRunnerFeature
22
- {
23
-
24
- private static TechTalk.SpecFlow.ITestRunner testRunner;
25
-
26
- #line 1 "OneFeature.feature"
27
- #line hidden
28
-
29
- [NUnit.Framework.TestFixtureSetUpAttribute()]
30
- public virtual void FeatureSetup()
31
- {
32
- testRunner = TechTalk.SpecFlow.TestRunnerManager.GetTestRunner();
33
- TechTalk.SpecFlow.FeatureInfo featureInfo = new TechTalk.SpecFlow.FeatureInfo(new System.Globalization.CultureInfo("en-US"), "Test to test the runner", "In order to verify that the albacore runner runs\r\nI need to write some specs", ((string[])(null)));
34
- testRunner.OnFeatureStart(featureInfo);
35
- }
36
-
37
- [NUnit.Framework.TestFixtureTearDownAttribute()]
38
- public virtual void FeatureTearDown()
39
- {
40
- testRunner.OnFeatureEnd();
41
- testRunner = null;
42
- }
43
-
44
- public virtual void ScenarioSetup(TechTalk.SpecFlow.ScenarioInfo scenarioInfo)
45
- {
46
- testRunner.OnScenarioStart(scenarioInfo);
47
- }
48
-
49
- [NUnit.Framework.TearDownAttribute()]
50
- public virtual void ScenarioTearDown()
51
- {
52
- testRunner.OnScenarioEnd();
53
- }
54
-
55
- [NUnit.Framework.TestAttribute()]
56
- [NUnit.Framework.DescriptionAttribute("Check for the mighty Foo")]
57
- public virtual void CheckForTheMightyFoo()
58
- {
59
- TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Check for the mighty Foo", ((string[])(null)));
60
- #line 5
61
- this.ScenarioSetup(scenarioInfo);
62
- #line 6
63
- testRunner.Given("I create a Class1");
64
- #line 7
65
- testRunner.When("I call Foo");
66
- #line 8
67
- testRunner.Then("I should get \"bar\"");
68
- #line hidden
69
- testRunner.CollectScenarioErrors();
70
- }
71
- }
72
- }
73
- #endregion
@@ -1,36 +0,0 @@
1
- using System.Reflection;
2
- using System.Runtime.CompilerServices;
3
- using System.Runtime.InteropServices;
4
-
5
- // General Information about an assembly is controlled through the following
6
- // set of attributes. Change these attribute values to modify the information
7
- // associated with an assembly.
8
- [assembly: AssemblyTitle("TestSolution.SpecFlow")]
9
- [assembly: AssemblyDescription("")]
10
- [assembly: AssemblyConfiguration("")]
11
- [assembly: AssemblyCompany("Microsoft")]
12
- [assembly: AssemblyProduct("TestSolution.SpecFlow")]
13
- [assembly: AssemblyCopyright("Copyright © Microsoft 2010")]
14
- [assembly: AssemblyTrademark("")]
15
- [assembly: AssemblyCulture("")]
16
-
17
- // Setting ComVisible to false makes the types in this assembly not visible
18
- // to COM components. If you need to access a type in this assembly from
19
- // COM, set the ComVisible attribute to true on that type.
20
- [assembly: ComVisible(false)]
21
-
22
- // The following GUID is for the ID of the typelib if this project is exposed to COM
23
- [assembly: Guid("fc8beb0b-22fa-4222-a73d-4f85d4278bc4")]
24
-
25
- // Version information for an assembly consists of the following four values:
26
- //
27
- // Major Version
28
- // Minor Version
29
- // Build Number
30
- // Revision
31
- //
32
- // You can specify all the values or you can default the Build and Revision Numbers
33
- // by using the '*' as shown below:
34
- // [assembly: AssemblyVersion("1.0.*")]
35
- [assembly: AssemblyVersion("1.0.0.0")]
36
- [assembly: AssemblyFileVersion("1.0.0.0")]
@@ -1,30 +0,0 @@
1
- using NUnit.Framework;
2
- using TechTalk.SpecFlow;
3
-
4
- namespace TestSolution.SpecFlow
5
- {
6
- [Binding]
7
- public class StepDefinition
8
- {
9
- private Class1 myclass;
10
- private string _result;
11
-
12
- [Given(@"I create a Class1")]
13
- public void GivenICreateAClass1()
14
- {
15
- myclass = new Class1();
16
- }
17
-
18
- [When(@"I call Foo")]
19
- public void WhenICallFoo()
20
- {
21
- _result = myclass.Foo();
22
- }
23
-
24
- [Then(@"I should get ""(.*)""")]
25
- public void ThenIShouldGetBar(string value)
26
- {
27
- Assert.That(_result, Is.EqualTo(value));
28
- }
29
- }
30
- }
@@ -1,84 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
- <PropertyGroup>
4
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6
- <ProductVersion>9.0.30729</ProductVersion>
7
- <SchemaVersion>2.0</SchemaVersion>
8
- <ProjectGuid>{57F50D38-0EA8-401F-AD2A-CA50738F4F14}</ProjectGuid>
9
- <OutputType>Library</OutputType>
10
- <AppDesignerFolder>Properties</AppDesignerFolder>
11
- <RootNamespace>TestSolution.SpecFlow</RootNamespace>
12
- <AssemblyName>TestSolution.SpecFlow</AssemblyName>
13
- <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
14
- <FileAlignment>512</FileAlignment>
15
- </PropertyGroup>
16
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
17
- <DebugSymbols>true</DebugSymbols>
18
- <DebugType>full</DebugType>
19
- <Optimize>false</Optimize>
20
- <OutputPath>bin\Debug\</OutputPath>
21
- <DefineConstants>DEBUG;TRACE</DefineConstants>
22
- <ErrorReport>prompt</ErrorReport>
23
- <WarningLevel>4</WarningLevel>
24
- </PropertyGroup>
25
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
26
- <DebugType>pdbonly</DebugType>
27
- <Optimize>true</Optimize>
28
- <OutputPath>bin\Release\</OutputPath>
29
- <DefineConstants>TRACE</DefineConstants>
30
- <ErrorReport>prompt</ErrorReport>
31
- <WarningLevel>4</WarningLevel>
32
- </PropertyGroup>
33
- <ItemGroup>
34
- <Reference Include="nunit.framework, Version=2.5.2.9222, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
35
- <SpecificVersion>False</SpecificVersion>
36
- <HintPath>..\..\Tools\NUnit-v2.5\nunit.framework.dll</HintPath>
37
- </Reference>
38
- <Reference Include="System" />
39
- <Reference Include="System.Core">
40
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
41
- </Reference>
42
- <Reference Include="System.Xml.Linq">
43
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
44
- </Reference>
45
- <Reference Include="System.Data.DataSetExtensions">
46
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
47
- </Reference>
48
- <Reference Include="System.Data" />
49
- <Reference Include="System.Xml" />
50
- <Reference Include="TechTalk.SpecFlow, Version=1.2.0.0, Culture=neutral, PublicKeyToken=0778194805d6db41, processorArchitecture=MSIL">
51
- <SpecificVersion>False</SpecificVersion>
52
- <HintPath>..\..\Tools\SpecFlow\TechTalk.SpecFlow.dll</HintPath>
53
- </Reference>
54
- </ItemGroup>
55
- <ItemGroup>
56
- <Compile Include="OneFeature.feature.cs">
57
- <AutoGen>True</AutoGen>
58
- <DesignTime>True</DesignTime>
59
- <DependentUpon>OneFeature.feature</DependentUpon>
60
- </Compile>
61
- <Compile Include="Properties\AssemblyInfo.cs" />
62
- <Compile Include="StepDefinition.cs" />
63
- </ItemGroup>
64
- <ItemGroup>
65
- <None Include="OneFeature.feature">
66
- <Generator>SpecFlowSingleFileGenerator</Generator>
67
- <LastGenOutput>OneFeature.feature.cs</LastGenOutput>
68
- </None>
69
- </ItemGroup>
70
- <ItemGroup>
71
- <ProjectReference Include="..\TestSolution\TestSolution.csproj">
72
- <Project>{36F8C06F-3BBA-4D11-9333-83573A760284}</Project>
73
- <Name>TestSolution</Name>
74
- </ProjectReference>
75
- </ItemGroup>
76
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
77
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
78
- Other similar extension points exist, see Microsoft.Common.targets.
79
- <Target Name="BeforeBuild">
80
- </Target>
81
- <Target Name="AfterBuild">
82
- </Target>
83
- -->
84
- </Project>
@@ -1,36 +0,0 @@
1
- using System.Reflection;
2
- using System.Runtime.CompilerServices;
3
- using System.Runtime.InteropServices;
4
-
5
- // General Information about an assembly is controlled through the following
6
- // set of attributes. Change these attribute values to modify the information
7
- // associated with an assembly.
8
- [assembly: AssemblyTitle("TestSolution.Tests")]
9
- [assembly: AssemblyDescription("")]
10
- [assembly: AssemblyConfiguration("")]
11
- [assembly: AssemblyCompany("")]
12
- [assembly: AssemblyProduct("TestSolution.Tests")]
13
- [assembly: AssemblyCopyright("Copyright © 2009")]
14
- [assembly: AssemblyTrademark("")]
15
- [assembly: AssemblyCulture("")]
16
-
17
- // Setting ComVisible to false makes the types in this assembly not visible
18
- // to COM components. If you need to access a type in this assembly from
19
- // COM, set the ComVisible attribute to true on that type.
20
- [assembly: ComVisible(false)]
21
-
22
- // The following GUID is for the ID of the typelib if this project is exposed to COM
23
- [assembly: Guid("d9318756-c32b-4910-8be9-d5fb0d248e3e")]
24
-
25
- // Version information for an assembly consists of the following four values:
26
- //
27
- // Major Version
28
- // Minor Version
29
- // Build Number
30
- // Revision
31
- //
32
- // You can specify all the values or you can default the Build and Revision Numbers
33
- // by using the '*' as shown below:
34
- // [assembly: AssemblyVersion("1.0.*")]
35
- [assembly: AssemblyVersion("1.0.0.0")]
36
- [assembly: AssemblyFileVersion("1.0.0.0")]
@@ -1,23 +0,0 @@
1
- using System;
2
- using System.Collections.Generic;
3
- using System.Linq;
4
- using System.Text;
5
- using NUnit.Framework;
6
-
7
- namespace TestSolution.Tests
8
- {
9
-
10
- [TestFixture]
11
- public class SomeTestFixture
12
- {
13
-
14
- [Test]
15
- public void foo()
16
- {
17
- Class1 c1 = new Class1();
18
- string s = c1.Foo();
19
- Assert.AreEqual("bar", s);
20
- }
21
-
22
- }
23
- }
@@ -1,69 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
- <PropertyGroup>
4
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6
- <ProductVersion>9.0.30729</ProductVersion>
7
- <SchemaVersion>2.0</SchemaVersion>
8
- <ProjectGuid>{48CA57DD-F6F9-46EF-9030-1E6A8D383F1C}</ProjectGuid>
9
- <OutputType>Library</OutputType>
10
- <AppDesignerFolder>Properties</AppDesignerFolder>
11
- <RootNamespace>TestSolution.Tests</RootNamespace>
12
- <AssemblyName>TestSolution.Tests</AssemblyName>
13
- <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
14
- <FileAlignment>512</FileAlignment>
15
- </PropertyGroup>
16
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
17
- <DebugSymbols>true</DebugSymbols>
18
- <DebugType>full</DebugType>
19
- <Optimize>false</Optimize>
20
- <OutputPath>bin\Debug\</OutputPath>
21
- <DefineConstants>DEBUG;TRACE</DefineConstants>
22
- <ErrorReport>prompt</ErrorReport>
23
- <WarningLevel>4</WarningLevel>
24
- </PropertyGroup>
25
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
26
- <DebugType>pdbonly</DebugType>
27
- <Optimize>true</Optimize>
28
- <OutputPath>bin\Release\</OutputPath>
29
- <DefineConstants>TRACE</DefineConstants>
30
- <ErrorReport>prompt</ErrorReport>
31
- <WarningLevel>4</WarningLevel>
32
- </PropertyGroup>
33
- <ItemGroup>
34
- <Reference Include="nunit.framework, Version=2.5.2.9222, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
35
- <SpecificVersion>False</SpecificVersion>
36
- <HintPath>..\..\Tools\NUnit-v2.5\nunit.framework.dll</HintPath>
37
- </Reference>
38
- <Reference Include="System" />
39
- <Reference Include="System.Core">
40
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
41
- </Reference>
42
- <Reference Include="System.Xml.Linq">
43
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
44
- </Reference>
45
- <Reference Include="System.Data.DataSetExtensions">
46
- <RequiredTargetFramework>3.5</RequiredTargetFramework>
47
- </Reference>
48
- <Reference Include="System.Data" />
49
- <Reference Include="System.Xml" />
50
- </ItemGroup>
51
- <ItemGroup>
52
- <Compile Include="SomeTestFixture.cs" />
53
- <Compile Include="Properties\AssemblyInfo.cs" />
54
- </ItemGroup>
55
- <ItemGroup>
56
- <ProjectReference Include="..\TestSolution\TestSolution.csproj">
57
- <Project>{36F8C06F-3BBA-4D11-9333-83573A760284}</Project>
58
- <Name>TestSolution</Name>
59
- </ProjectReference>
60
- </ItemGroup>
61
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
62
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
63
- Other similar extension points exist, see Microsoft.Common.targets.
64
- <Target Name="BeforeBuild">
65
- </Target>
66
- <Target Name="AfterBuild">
67
- </Target>
68
- -->
69
- </Project>