Sunday, September 8, 2019

Test-driven development (TDD)

TDD is development methodology.  by TDD Your code will make sure there are no bugs.

Requirements are turned into very specific test cases, then the software is improved so that the tests pass.

TDD is a software development process that relies on the repetition of a very short development cycle.

Image result for tdd development methodology

Benefits of TDD:

Writing the tests first requires you to really consider what do you want from the code.

You receive fast feedback.

TDD creates a detailed specification.

TDD reduces time spent on rework.

Spend less time in the debugger.

Able to identify the errors and problems quickly.

TDD tells you whether your last change (or refactoring) broke previously working code.

TDD allows the design to evolve and adapt to your changing understanding of the problem.

TDD forces the radical simplification of the code. You will only write code in response to the requirements of the tests.

You're forced to write small classes focused on one thing.

The resulting unit tests are simple and act as documentation for the code.

The development time to market is shorter.

The programmer’s productivity is increased.

Quality is improved.

Bugs are reduced.






Opps Part 1 : Abstraction

  Abstraction in C# is a fundamental concept of object-oriented programming (OOP) that allows developers t...