NUnit support

Rating: No reviews yet
Downloads: 149
Change Set: 162708ded0c6
Released: Sep 27, 2010
Updated: Sep 27, 2010 by ptrelford
Dev status: Alpha Help Icon

Recommended Download

Source Code TickSpec Source
source code, 97K, uploaded Sep 27, 2010 - 76 downloads

Other Available Downloads

Application TickSpec Library
application, 66K, uploaded Sep 27, 2010 - 73 downloads

Release Notes

Uses NUnit 2.5's TestCaseSourceAttribute to enumerate tests generated for each scenario.

open NUnit.Framework
open System.Reflection
open TickSpec

let ass = Assembly.GetExecutingAssembly() 
let definitions = new StepDefinitions(ass)       

[<TestFixture>]
type Feature2 () =
    [<Test>]
    [<TestCaseSource("Scenarios")>]
    member this.TestScenario (scenario:Scenario) =
        scenario.Action.Invoke()        
    static member Scenarios =
        let source = @"Feature2.txt"
        let s = ass.GetManifestResourceStream(source)   
        definitions.GenerateScenarios(source,s)

Reviews for this release

No reviews yet for this release.