1UNIT TESTING is a software testing where individual
2units or components of a software are tested.
3The purpose is to validate that each unit of the
4software performs as designed.
1Testing each component of the application
2separately. In application it could be
3one component. One component has
4stand-alone functionality.
5Ex. in amazon.com Seller functionality
6can be one component. Buyer can be another
7component. Also, Amazon prime videos
8can be another component.
9
1It is part of the white box testing.
2It’s done by the developers before
3they deploy the code from Development
4environment to QA environment.
5• Since it is performed by developers,
6I have never done unit testing yet.
7But I think I can learn it and do it if it is needed
1public class SomeClass
2{
3 public SomeClass(calculatedParams)
4 {
5 ...
6 }
7}
8
9 public interface ISomeClassCreator
10 {
11 SomeClass Create(params);
12 }
13
14public class SomeClassCreator: ISomeClassCreator
15{
16 public SomeClass Create(params)
17 {
18 ...
19 }
20}
21