unit-testingpexintellitest

IntelliTest does not use PexArguments


I am trying to force IntelliTest to try specific parameters with the following code:

[PexClass]
public class Program {
    [PexMethod]
    [PexArguments((short)1234, "G", Alternate = true)]
    public string Format(short val, string format) {
        return val.ToString(format);
    }
}

Do you have any idea what 1234 and "G" are never tried?

Code on pex4fun

Thank you, Rok


Solution

  • Alternating input enumerators is not supported yet. Either remove Alternate=true, or set it to false, and then 1234, "G" will get used.