[SpecFlow] An offer concerning adding new TableExtension method
Hello,
Our team has created a useful overloaded method for "CreateInstance" and "CreateSet". Now "CreateInstance" cannot cope with creating an instance from a table where the collection values are written in a column, as well as the data that contains a symbol "," or ";".
For a better understanding, let me give you an example.
We have a class with variables of the "List" type:
Our team has created a useful overloaded method for "CreateInstance" and "CreateSet". Now "CreateInstance" cannot cope with creating an instance from a table where the collection values are written in a column, as well as the data that contains a symbol "," or ";".
For a better understanding, let me give you an example.
We have a class with variables of the "List" type:
public class ManagePrograms { public string Name { get; set; } public List<string> Programs { get; set; } }
And we have a table for creating the instance:
Given Create ManageProgram object | Name | Programs | | Laptop | NetBeans IDE 4.0 | | | Microsoft Unified Communications Managed API 4.0, SSP Runtime | | | NI MDF Support 2.1 |
Our method will analyze the table and add all the values in the instance. So we get the instance which contains the value in the property "Name" and three values in the property "Programs". Please note, the second value in the List will contain the string "Microsoft Unified Communications Managed API 4.0, SSP Runtime" including the ",".The same situation is with the set of the instances.
Example:
Example:
Given Create ManageProgram object | Name | Programs | | Laptop | NetBeans IDE 4.0 | | | Microsoft Unified Communications Managed API 4.0, SSP Runtime | | | NI MDF Support 2.1 | | PC | Notepad | | | Skype 8.37 |
After, we will get a set with two ManageProgram instances.
We want to contribute to the development of "SpecFlow", and would like to kindle your interest to our implementation.
Looking forward to your response.
We want to contribute to the development of "SpecFlow", and would like to kindle your interest to our implementation.
Looking forward to your response.
5
Please sign in to leave a comment.
Comments
0 comments