c# - Check that program logic is deterministic -


don't know if right title need. need run program same input data few times , ensure every time program take same path , produced same output. need make sure iterator proccessed elements in same order.

maybe there tools purpose? or maybe there standard way what-to-do in order check that? put c# in tags because need solution language (and i'm coding in vs2012 if can of help).

edit: input of program consists of list of integers , output simple boolean. if i'll write tests - there can big difference in calculations , yet same result. need check program code taken same path every time.

you can use test framework , use mocks excepts , asssert output


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -