PARAMETERIZED UNIT TEST (PUT)
Parameterized unit tests (PUTs) is a new methodology where parameters can be passed to the open unit tests by which the behavior of the test can be tested under certain scenario as well as by instantiating the parameterized test methods with given argument sets. Instantiations should be chosen so that they exercise different code paths of the methods-under-test. UNIT TESTING AT A GLANCE [i] : Three sections of Unit Tests: Data Method Sequence Assertions void Add() { int item = 3; var list = new List(); list.Add(item); var Count = list.Count(); Assert.AreEqual(1, Count); } INCOMPLETE CODE COVERAGE WITH TEST DATA: list.Add(3); Bad data may result in redundant, or worse, incomplete test suites. Fixed data values become invalid when product changes Why choose a value which may not make sense? WHAT IS PARAMETERIZED UNIT TEST? Parameterized Unit Test is a Unit Test with Parameters. Separation of concerns: Data is generat