C# library to automatically generate values for unit tests -


i've read library generates auto values usage in unit test not find it. basically, want instead of:

[test] public void test() {     int x = 2;     int y = 5;      assert.areequal(7, objectundertest.add(x, y)); } 

i want write:

[test] public void test() {     int x = lib.int();     int y = lib.int();      assert.areequal(x + y, objectundertest.add(x, y)); } 

update:

autofixture 1 i'm looking for. autofixture, test be:

[test] public void test() {     var fixture = new fixture();     int x = fixture.createanonymous<int>();     int y = fixture.createanonymous<int>();      assert.areequal(x + y, objectundertest.add(x, y)); } 

i haven't used of these yet interested in topic.

here's round of of them done author of tool looks worth checking out called quickgenerate.


Comments

Popular posts from this blog

jQuery Ajax Render Fragments OR Whole Page -

javascript - Iterate over array and calculate average values of array-parts -

java - Simple Command Line calculator -