Sha256: 86f4c358401763d73ae522a07c4afef6d1473093f92d2be3bafd682f9540c623

Contents?: true

Size: 667 Bytes

Versions: 1

Compression:

Stored size: 667 Bytes

Contents

using NUnit.Framework;
using TechTalk.SpecFlow;

namespace TestSolution.SpecFlow
{
    [Binding]
    public class StepDefinition
    {
        private Class1 myclass;
        private string _result;

        [Given(@"I create a Class1")]
        public void GivenICreateAClass1()
        {
            myclass = new Class1();
        }

        [When(@"I call Foo")]
        public void WhenICallFoo()
        {
            _result = myclass.Foo();
        }

        [Then(@"I should get ""(.*)""")]
        public void ThenIShouldGetBar(string value)
        {
            Assert.That(_result, Is.EqualTo(value));
        }
    }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
albacore-0.2.0.preview1 spec/support/TestSolution/TestSolution.SpecFlow/StepDefinition.cs