SpecFlow and complex objects

前端 未结 7 813
旧巷少年郎
旧巷少年郎 2020-12-23 17:57

I\'m evaluating SpecFlow and I\'m a bit stuck.
All samples I have found are basically with simple objects.

Project I\'m working on heavily relies on a complex ob

相关标签:
7条回答
  • 2020-12-23 18:29

    using TechTalk.SpecFlow.Assist;

    https://github.com/techtalk/SpecFlow/wiki/SpecFlow-Assist-Helpers

        [Given(@"resource is")]
        public void Given_Resource_Is(Table payload)
        {
            AddToScenarioContext("payload", payload.CreateInstance<Part>());
        }
    
    0 讨论(0)
提交回复
热议问题