Slide 17
Slide 17 text
.NET
• Unit and integration tests with the help of dependency injection
• Libraries: MSTest, nUnit, Moq, FluentAssertions, …
Angular 2
• Unit and end-to-end tests
• Libraries: Jasmine, Karma, Instanbul, Protractor
Testing
17
describe(‘getCustomers', () => {
const service = new CustomerService();
it('should return 3 customers', () => {
var list = service.getCustomers();
expect(list.length).toBe(3);
});
});