![]()
In Partial Fulfillment of the Requirements for the Degree of
Master of Science
Will defend his thesis
Previous work in the area of Mock objects and unit testing proposed an Abstraction Based framework for creating Mock objects. While this approach has its advantages, it suffers from some significant disadvantages. Namely, the creation of mock was very slow and the dependency on State Machine Compiler restricted how specification of state transition for the Mock objects.
In this thesis, we propose an approach to map the state table into mock object on the fly. Our solution addresses both the drawbacks of previous work. By using dynamic code generation capabilities in .NET we generate a state based class that maintains the state of the mock. The dynamic generation of mock using this approach proves to be faster, taking less than 100ms. Further more, our new approach allows us to specify multiple state transitions, making the Mock object effective for unit testing.Faculty, students, and the general public are invited.
Thesis Advisor: Dr. Venkat Subramaniam