Is unit testing possible or even desirable in all circumstances? Provide examples to justify your answer.
Answers
Answered by
28
Unit testing may not be possible in all situations. When object-oriented software is considered, the concept of unit testing changes. Encapsulation drives the definition of classes and objects. This means that each class and each instance of a class packages attributes and the operations that manipulate these data. An encapsulated class is usually the focus of unit testing. However, operations within the class are the smallest testable units. Because, a class can contain a number of different operations, and a particular operation may exist as a part of a number of different classes, the tactics applied to unit testing must change.
please mark it as brainliest
please mark it as brainliest
Similar questions