c# - Specflow ComparetoSet throwAnErrorDetailingWhichItemsAreMissing -


i new specflow , trying utilize bdd pattern using specflow integrated visual studio 2015. have composite/complex object way hierarchy works example

responsemessage     ---- messageheaderclass contexttoken               ----this property holds class object have few string properties      ---- someconcreteclass messagebody               ----this property holds class object have few string properties 

i have written scenario , want find values getting not reaching point thought let's try utilise comparetoset method of spec flow assist helper getting exception , in message of exception got

| contexttoken  | messagebody |     + | messageheaderclass | someconcreteclass | 

what expecting , maybe wrong comparetoset set values returned object properties mentioned in scenario. have kept same properties name in feature can see below

scenario: request invoker response values check     given invoker invoked methodname     when request passed methodname response     following response     | contexttoken  | messagebody             |     #| messageheader | someconcreteclass |     #| {3/1/2016 3:38:55 pm}   |  request received          |     #| 10085103-1618744 |  |     #| somevalue    |                  |     #| 00000-44144-444244-1044-441         |                  |     #| somevalue   

exception details follows techtalk.specflow.assist.setcomparer1.throwanerrordetailingwhichitemsaremissing(ienumerable1 listofmissingitems) @ techtalk.specflow.assist.setcomparer1.comparetoset(ienumerable1 set) @ techtalk.specflow.assist.setcomparisonextensionmethods.comparetoset[t](table table, ienumerable`1 set) at

i got resolved last week after careful insight of code , exception message lead me find out issue. issue forgot mention getter , setter (get;set;) of property , hence specflow complaining it. decorated property correctly problem resolved.

hope someone. didn't think because getting else running fine.


Comments

Popular posts from this blog

Combining PHP Registration and Login into one class with multiple functions in one PHP file -

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -