????3?????в??????????????
???????5?????????0
????4???????????????Add??????
int Demo::Add(int a?? int b)
{
return a+b;
}
????5????????в?????????
????????TDD????????д????????????????????????????IDE????????????????????????????????????????????????????????????????????????????????????????...?????????????????????????ζ??????????
?????塢??????CStockApp??
???????????????У?MFC????????????????"?????windows32??"?????????????????????2??裬?????????????CStockApp??????????????亯????
????1???????????У?#include "Stock.h"
?????????????????????????#include "Stock.h"?????:
????#include "..Stockstdafx.h"?????Stock???????????????????????????include?????????????????????????
????2??????????????У?????Stock.obj
??????????????????
???????Stock.cpp????????????obj?????????????????????£?
????stdafx.obj
????demo.obj
????StockDoc.obj
????StockView.obj
????MainFrm.obj
????3????TEST_METHOD(TestMethod1)?????д???CStockApp?????????????????
????CStockApp app;
????int i = app.GetDataVersion();
????Assert::AreEqual(-1?? i);
????4?????в??????????????????????????????????????????????MFC????