Код: Выделить всё
[TestMethod]
[DataRow( 0, 0, 0 )]
[DataRow( 0, 0, 1 )]
[DataRow( 0, 1, 0 )]
[DataRow( 0, 1, 1 )]
[DataRow( 1, 0, 0 )]
[DataRow( 1, 0, 1 )]
[DataRow( 1, 1, 0 )]
[DataRow( 1, 1, 1 )]
public void ReallyCoolTest( int a, int b, int c )
{
// some really cool test code that uses a, b, and c
}
[DataMatrix( {0,1}, {0,1}, {0,1} )]
public void ReallyCoolTest( int a, int b, int c )
{
// some really cool test code that uses a, b, and c
}
< /code>
Я хотел бы указать некоторые значения для каждого параметра и протестировать все комбинации. Есть ли что -то подобное, используя тест MS? Тем не менее, я хотел бы иметь значения в коде, а не в внешнем файле.
Подробнее здесь: https://stackoverflow.com/questions/703 ... n-datarows
Мобильная версия