L
L
Larry Underwood2016-07-27 14:17:56
Software testing
Larry Underwood, 2016-07-27 14:17:56

What are the libraries for auto-testing methods with random data iteration?

For example, there is a method ala:

public void CreateUser(User user, string password)
{

}

I want to test this method method on cases:
CreateUser(user, "1111");
CreateUser(null, "1111");
CreateUser(User, null);
CreateUser(null, null);

The question is not how to do it yourself, but how you can automate the generation of input data and iteration on the target method. Who knows the ready decision?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stanislav Makarov, 2016-07-27
@Nipheris

IntelliTest is a commercial development of the Pex research project . It does exactly what you want. Here is a sandbox to try.

A
AxisPod, 2016-07-28
@AxisPod

As a variant of AutoFixture.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question