December 2019
Intermediate to advanced
346 pages
9h 8m
English
The test case will look as follows:
[Test]public async Task GetDivisionAsyncShouldReturnSuccessIfDivisorIsNotZero(){ int number = 20; int divisor = 4; var result = await GetDivisionAsync(number, divisor); Assert.AreEqual(result, 5);}
As you can see, the expected result is 5. When we run the test, it will show up as successful in the Test Explorer.
Read now
Unlock full access