c# - Can AutoFixture generate random strings/text from a provided data set? -
it possible use autofixture generate random data string property .. it's fixed data source?
for example: have 30 street names hardcoded memory collection (array/list/whatever). then, address
instance, streetname
property isn't random string value (which default result autofixture) 1 of street names hardcoded collection.
my first thought use random number autofixture might able create.. , number inside array length/size ... in effect i'm randomizing array slot. then, using random number, value (aka street name) of collection/array slot (ie. given indexer, value @ index location).
is how should done?
Comments
Post a Comment