Wrox Programmer Forums
|
BOOK: Professional C++, 2nd Edition
This is the forum to discuss the Wrox book Professional C++, 2nd Edition by Marc Gregoire, Nicholas A. Solter, Scott J. Kleper ; ISBN: 978-1-1181-6995-7
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional C++, 2nd Edition section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 9th, 2012, 11:37 PM
Authorized User
 
Join Date: Oct 2011
Posts: 12
Thanks: 5
Thanked 0 Times in 0 Posts
Default MVC and Unit Testing

I am on page 69, "Designing A Test Program", and in this section it talks about the MVC design. I think I read once where the Microsoft Foundation Classes (MFC) is desgined with MVC in mind and it sort of helps you create you program in the MVC way. Is this true?

Also, looking over the ASP.Net MVC documentation that they discuss Unit Testing, and is even in the dialog when creating an ASP.NET MVC project. I have not done Unit Testing and was wondering if this is something that C++ programmers need to be concerned about.

Thanks!
 
Old June 10th, 2012, 03:50 AM
Wrox Author
 
Join Date: Mar 2011
Posts: 49
Thanks: 0
Thanked 4 Times in 4 Posts
Default

MFC is not exactly following the MVC (Model-View-Controller) pattern.
MFC uses a Document-View paradigm, which is kind of the MVC pattern but with the View and Controller merged into one.

Unit testing is a specific way of testing code that you write. In principle, you can use the unit testing method with any programming language you want. Certain tools make it easier to write unit tests for a certain language. A well known unit testing framework for C++ is called CppUnit (http://sourceforge.net/projects/cppunit/)
The Following User Says Thank You to Marc Gregoire For This Useful Post:
golfer43 (June 10th, 2012)
 
Old June 10th, 2012, 04:04 AM
Authorized User
 
Join Date: Oct 2011
Posts: 12
Thanks: 5
Thanked 0 Times in 0 Posts
Default

Thanks for answering my question. It makes perfect sense.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 7: Unit Testing with the Unit Testing Framework antwarpes BOOK: Professional Application Lifecycle Management with Visual Studio 2010 3 September 25th, 2011 08:47 AM
Chapter 7 Unit Testing with the Unit Test Framework - examples blaurence46 BOOK: Professional Application Lifecycle Management with Visual Studio 2010 1 September 24th, 2011 10:07 AM
Unit Testing jeffmorris BOOK: Professional XNA Game Programming: For Xbox 360 and Windows ISBN: 978-0-470-12677-6 7 May 14th, 2007 06:51 AM
Unit Testing userrob BOOK: ASP.NET Website Programming Problem-Design-Solution 2 November 9th, 2005 10:35 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.