Cách tham số hóa (Parameterized) cho một text fixture. Fixture bên dưới chạy ba lần với 3 loại browser khác nhau.
[TextFixture("IE")]
[TextFixture("Firefox")]
[TextFixture("Chrome")]
class TestFixture{
public TestFixture(string browsertype)
{
CreateBrowser(browsertype);
}
}
Không có nhận xét nào:
Đăng nhận xét