December 2019
Beginner to intermediate
770 pages
16h 14m
English
How do we verify that success is a real success? We can do this in a simple way – by providing a different expected value to the verification function of our test case. So let's do it:
Assert.ExpectedError('Testing the test.');
Running our second test will now yield a failure with the next error text:
Assert.ExpectedError failed. Expected: Testing the test. Actual: This category is blocked.
The actual error, indeed, is the one that should occur. After this, we move on to test example 3.
Read now
Unlock full access