albacore 0.2.0.preview1 → 0.2.0.preview2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.markdown +7 -2
- data/VERSION +1 -1
- data/install_dependencies.rb +1 -1
- data/lib/albacore.rb +6 -17
- data/lib/albacore/albacoretask.rb +43 -0
- data/lib/albacore/assemblyinfo.rb +10 -7
- data/lib/albacore/config/assemblyinfoconfig.rb +4 -12
- data/lib/albacore/config/config.rb +16 -8
- data/lib/albacore/config/cscconfig.rb +2 -7
- data/lib/albacore/config/docuconfig.rb +3 -5
- data/lib/albacore/config/execconfig.rb +4 -11
- data/lib/albacore/config/msbuildconfig.rb +2 -5
- data/lib/albacore/config/mspectestrunnerconfig.rb +15 -0
- data/lib/albacore/config/nantconfig.rb +4 -11
- data/lib/albacore/config/ncoverconsoleconfig.rb +4 -11
- data/lib/albacore/config/ncoverreportconfig.rb +4 -11
- data/lib/albacore/config/ndependconfig.rb +4 -11
- data/lib/albacore/config/netversion.rb +0 -2
- data/lib/albacore/config/nunittestrunnerconfig.rb +14 -0
- data/lib/albacore/config/specflowreportconfig.rb +2 -5
- data/lib/albacore/config/sqlcmdconfig.rb +4 -11
- data/lib/albacore/config/unzipconfig.rb +4 -11
- data/lib/albacore/config/xbuildconfig.rb +4 -11
- data/lib/albacore/config/xunittestrunnerconfig.rb +15 -0
- data/lib/albacore/config/zipdirectoryconfig.rb +15 -0
- data/lib/albacore/csc.rb +31 -5
- data/lib/albacore/docu.rb +2 -3
- data/lib/albacore/exec.rb +3 -5
- data/lib/albacore/msbuild.rb +3 -3
- data/lib/albacore/mspectestrunner.rb +5 -6
- data/lib/albacore/nant.rb +4 -6
- data/lib/albacore/ncoverconsole.rb +4 -6
- data/lib/albacore/ncoverreport.rb +4 -6
- data/lib/albacore/ncoverreports/codecoveragebase.rb +2 -2
- data/lib/albacore/ncoverreports/cyclomaticcomplexity.rb +2 -2
- data/lib/albacore/ncoverreports/fullcoveragereport.rb +0 -8
- data/lib/albacore/ncoverreports/reportfilterbase.rb +2 -2
- data/lib/albacore/ncoverreports/summaryreport.rb +0 -4
- data/lib/albacore/ndepend.rb +4 -6
- data/lib/albacore/nunittestrunner.rb +4 -5
- data/lib/albacore/specflowreport.rb +2 -2
- data/lib/albacore/sqlcmd.rb +33 -11
- data/lib/albacore/support/createtask.rb +30 -0
- data/lib/albacore/support/runcommand.rb +21 -30
- data/lib/albacore/support/updateattributes.rb +13 -0
- data/lib/albacore/unzip.rb +3 -5
- data/lib/albacore/xbuild.rb +5 -6
- data/lib/albacore/xunittestrunner.rb +4 -5
- data/lib/albacore/zipdirectory.rb +5 -6
- data/rakefile.rb +7 -8
- data/spec/albacoremodel_spec.rb +20 -2
- data/spec/assemblyinfo_spec.rb +27 -14
- data/spec/config_spec.rb +17 -2
- data/spec/createtask_spec.rb +51 -28
- data/spec/csc_spec.rb +135 -3
- data/spec/docu_spec.rb +11 -14
- data/spec/exec_spec.rb +1 -1
- data/spec/msbuild_spec.rb +9 -9
- data/spec/nant_spec.rb +4 -4
- data/spec/ncoverconsole_spec.rb +13 -13
- data/spec/ncoverreport_spec.rb +17 -17
- data/spec/ndepend_spec.rb +6 -6
- data/spec/runcommand_spec.rb +22 -3
- data/spec/sqlcmd_spec.rb +154 -12
- data/spec/support/assemblyinfotester.rb +1 -1
- data/spec/support/spec_helper.rb +2 -2
- data/spec/yamlconfig_spec.rb +3 -3
- data/spec/zip_spec.rb +4 -4
- metadata +32 -119
- data/lib/albacore/albacoremodel.rb +0 -28
- data/lib/albacore/config/mspecconfig.rb +0 -21
- data/lib/albacore/config/nunitconfig.rb +0 -20
- data/lib/albacore/config/xunitconfig.rb +0 -22
- data/lib/albacore/config/zipconfig.rb +0 -22
- data/lib/rake/assemblyinfotask.rb +0 -3
- data/lib/rake/csctask.rb +0 -3
- data/lib/rake/docutask.rb +0 -3
- data/lib/rake/exectask.rb +0 -3
- data/lib/rake/msbuildtask.rb +0 -3
- data/lib/rake/mspectask.rb +0 -3
- data/lib/rake/nanttask.rb +0 -3
- data/lib/rake/ncoverconsoletask.rb +0 -3
- data/lib/rake/ncoverreporttask.rb +0 -3
- data/lib/rake/ndependtask.rb +0 -3
- data/lib/rake/nunittask.rb +0 -3
- data/lib/rake/specflowreporttask.rb +0 -3
- data/lib/rake/sqlcmdtask.rb +0 -3
- data/lib/rake/support/albacoretask.rb +0 -30
- data/lib/rake/support/createtask.rb +0 -21
- data/lib/rake/unziptask.rb +0 -3
- data/lib/rake/xbuildtask.rb +0 -7
- data/lib/rake/xunittask.rb +0 -3
- data/lib/rake/ziptask.rb +0 -3
- data/spec/assemblyinfotask_spec.rb +0 -32
- data/spec/csctask_spec.rb +0 -1
- data/spec/docutask_spec.rb +0 -52
- data/spec/exectask_spec.rb +0 -46
- data/spec/msbuildtask_spec.rb +0 -46
- data/spec/mspectask_spec.rb +0 -46
- data/spec/nanttask_spec.rb +0 -46
- data/spec/ncoverconsoletask_spec.rb +0 -46
- data/spec/ncoverreporttask_spec.rb +0 -46
- data/spec/ndependtask_spec.rb +0 -46
- data/spec/nunittask_spec.rb +0 -46
- data/spec/spec.opts +0 -1
- data/spec/specflowreporttask_spec.rb +0 -48
- data/spec/sqlcmdtask_spec.rb +0 -32
- data/spec/support/AssemblyInfo/assemblyinfo.yml +0 -2
- data/spec/support/CodeCoverage/mspec/assemblies/Machine.Specifications.NUnit.dll +0 -0
- data/spec/support/CodeCoverage/mspec/assemblies/Machine.Specifications.dll +0 -0
- data/spec/support/CodeCoverage/mspec/assemblies/TestSolution.MSpecTests.dll +0 -0
- data/spec/support/CodeCoverage/mspec/assemblies/TestSolution.dll +0 -0
- data/spec/support/CodeCoverage/mspec/assemblies/nunit.framework.dll +0 -0
- data/spec/support/CodeCoverage/nunit/assemblies/TestSolution.Tests.dll +0 -0
- data/spec/support/CodeCoverage/nunit/assemblies/TestSolution.dll +0 -0
- data/spec/support/CodeCoverage/nunit/assemblies/nunit.framework.dll +0 -0
- data/spec/support/CodeCoverage/nunit/assemblies/with spaces/TestSolution.Tests.dll +0 -0
- data/spec/support/CodeCoverage/nunit/assemblies/with spaces/TestSolution.dll +0 -0
- data/spec/support/CodeCoverage/nunit/assemblies/with spaces/nunit.framework.dll +0 -0
- data/spec/support/CodeCoverage/nunit/failing_assemblies/TestSolution.FailingTests.dll +0 -0
- data/spec/support/CodeCoverage/nunit/failing_assemblies/nunit.framework.dll +0 -0
- data/spec/support/CodeCoverage/report/coverage.xml +0 -4578
- data/spec/support/CodeCoverage/xunit/assemblies/TestSolution.XUnitTests.dll +0 -0
- data/spec/support/CodeCoverage/xunit/assemblies/TestSolution.dll +0 -0
- data/spec/support/CodeCoverage/xunit/assemblies/xunit.dll +0 -0
- data/spec/support/CodeCoverage/xunit/assemblies/xunit.xml +0 -2306
- data/spec/support/SpecFlow/TechTalk.SpecFlow.dll +0 -0
- data/spec/support/SpecFlow/TestSolution.SpecFlow.dll +0 -0
- data/spec/support/SpecFlow/TestSolution.SpecFlow.pdb +0 -0
- data/spec/support/SpecFlow/TestSolution.dll +0 -0
- data/spec/support/SpecFlow/TestSolution.pdb +0 -0
- data/spec/support/SpecFlow/nunit.framework.dll +0 -0
- data/spec/support/TestSolution/NDependProject.xml +0 -315
- data/spec/support/TestSolution/TestSolution.5.0.ReSharper.user +0 -27
- data/spec/support/TestSolution/TestSolution.FailingTests/FailingTestFixture.cs +0 -19
- data/spec/support/TestSolution/TestSolution.FailingTests/Properties/AssemblyInfo.cs +0 -36
- data/spec/support/TestSolution/TestSolution.FailingTests/TestSolution.FailingTests.csproj +0 -63
- data/spec/support/TestSolution/TestSolution.MSpecTests/Properties/AssemblyInfo.cs +0 -36
- data/spec/support/TestSolution/TestSolution.MSpecTests/SomeSpecTest.cs +0 -18
- data/spec/support/TestSolution/TestSolution.MSpecTests/TestSolution.MSpecTests.csproj +0 -77
- data/spec/support/TestSolution/TestSolution.SpecFlow/OneFeature.feature +0 -8
- data/spec/support/TestSolution/TestSolution.SpecFlow/OneFeature.feature.cs +0 -73
- data/spec/support/TestSolution/TestSolution.SpecFlow/Properties/AssemblyInfo.cs +0 -36
- data/spec/support/TestSolution/TestSolution.SpecFlow/StepDefinition.cs +0 -30
- data/spec/support/TestSolution/TestSolution.SpecFlow/TestSolution.SpecFlow.csproj +0 -84
- data/spec/support/TestSolution/TestSolution.Tests/Properties/AssemblyInfo.cs +0 -36
- data/spec/support/TestSolution/TestSolution.Tests/SomeTestFixture.cs +0 -23
- data/spec/support/TestSolution/TestSolution.Tests/TestSolution.Tests.csproj +0 -69
- data/spec/support/TestSolution/TestSolution.XUnitTests/Class1.cs +0 -19
- data/spec/support/TestSolution/TestSolution.XUnitTests/FailingTestFixture.cs +0 -14
- data/spec/support/TestSolution/TestSolution.XUnitTests/Properties/AssemblyInfo.cs +0 -36
- data/spec/support/TestSolution/TestSolution.XUnitTests/TestSolution.XUnitTests.csproj +0 -70
- data/spec/support/TestSolution/TestSolution.build +0 -25
- data/spec/support/TestSolution/TestSolution.sln +0 -50
- data/spec/support/TestSolution/TestSolution/Class1.cs +0 -17
- data/spec/support/TestSolution/TestSolution/Properties/AssemblyInfo.cs +0 -36
- data/spec/support/TestSolution/TestSolution/TestSolution.csproj +0 -59
- data/spec/support/csc/File1.cs +0 -9
- data/spec/support/csc/File2.cs +0 -9
- data/spec/support/csc/output/ignorethis.txt +0 -1
- data/spec/support/test.yml +0 -4
- data/spec/support/yamlconfig/msbuild.yml +0 -5
- data/spec/support/yamlconfig/yaml_autoconfig_test.yml +0 -1
- data/spec/support/zip/files/subfolder/sub file.txt +0 -1
- data/spec/support/zip/files/testfile.txt +0 -1
- data/spec/xunittask_spec.rb +0 -32
- 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,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>
|