Содержание
- 2. Agenda Composition vs Inheritance? Examples Unit testing TDD Creating MS Test project Assert class Examples
- 3. Composition vs Inheritance Object Composition is a way to combine simple objects or data types into
- 4. Example 1. Point and Triangle
- 5. Example 2. Slide, Presentation
- 6. Task-Homework 1 Create struct Point: - fields x and y, - method Distance() to calculate distance
- 7. Unit testing with MS test
- 8. Unit Testing Unit testing is a procedure used to validate that individual units of source code
- 9. Test-Driven Development (TDD) The traditional way of writing unit tests Test-driven development
- 10. Unit-testing frameworks UTF for .NET: MSTest NUnit XUnit …
- 11. Creating Unit Tests
- 12. Kinds of Assert Classes Microsoft.VisualStudio.TestTools.UnitTesting namespace: class Assert In your test method, you can call any
- 13. public static class Assert
- 14. Example 1. Testing Bank project
- 15. Create project and Unit test example 1. Create project MyCalcLib 2. Right click on Solution Add
- 16. Create project and Unit test example After this click Build Solution
- 18. Скачать презентацию