V
V
Valera Figol2017-05-01 16:55:18
Slider
Valera Figol, 2017-05-01 16:55:18

What is better to use in NUnit?

I faced such a dilemma: I write automated tests using Selenium WebDriver & NUnit.
So, I found two ways to check the result:
1. Using Assert
2. Set the ExpectedResult parameter in [Test]
What is the best way to use for automatic tests?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
boga-net, 2018-06-08
@boga-net

There is no such thing in the slick settings. At least I haven't seen
you need something like that. Each active slide in a slick gets the .slick-active class. Try adding something like this for it:
https://jsfiddle.net/saL27bo1/4/
(Hover over center element) Set slidesToShow
in settings
: 3

Андрей К., 2017-05-01
@Kamrit

У ExpectedResult ограниченные возможности для применения, значит где-то потребуется Assert и более сложные способы проверки (например, с помощью моков), значит часть тестов будет с ExpectedResult, а часть без, значит для единообразия лучше все тесты делать с Assert.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question