Click here to Skip to main content
15,886,664 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi folks, for the last couple of days I was going through TDD approach. It's a great one and the development starts with the test (rather unit test not integration tests) and the module gets developed with the advancements of test. The basic understanding that I got that before writing the test you should have a solid understanding of the architecture of the solution and requirements and then start writing test and then make the actual code to pass those tests.

Now, my question is, in case of n layered application, from which layer the test should start. As it's a unit test based practice we can't cross layers and whenever we face a cross layer interaction we need to bypass it by mocking the objects. As the test will drive the development I'm quite confused that where to start.

Just for an example, if we are going to create a Silverlight application using MVVM Framework, then with respect to TDD approach, which will be the first layer the test should target?

I think I'm quite clear about the problem. If not so, please let me know so that I can put some more info about this.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900