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
Post a Comment