PresentationUI Presentation Logic Domain LogicBusiness logic Data InterfaceData
Проектирование Структура Presentation(UI) Presentation Logic Domain Logic(Business logic) Data Interface(Data Align Level) Data source(Data Layer) Test-Driven Development(TDD) Feature Driven Development(FDD) Dynamic System Development(DSD) Model Driven Development (MDD)
Дополнительные инструменты разработки Bug. Tracker. NET Jira Mantis. BT Redmine Version Control System(VCS) SVN HG + Mercurial TFS Nightly Builds CCNET Documents Repository Windows Share. Point Services Tiki Git
Bug. Tracker Mantis. BT(www. mantisbt. org/)
Version Control System(VCS) Tortoise. HG(mercurial. selenic. com/)
Version Control System(VCS) Visual. SVN(www. visualsvn. com) Ahkh. SVN(ankhsvn. open. collab. net/)
Nightly Builds Server (CCNET) CCNET - Cruise. Control. NET (http: //ccnet. thoughtworks. com/)
Nightly Builds Server (CCNET) CCNET - Cruise. Control. NET (http: //ccnet. thoughtworks. com/)
Documents Repository Tiki Windows Share. Point Services
Unit Testing Gallio Mb. Unit Rhino Mocks Nunit NUnit. Asp
Unit Testing. MBUnit [Test] public void Setting. Value. Raises. Event() { bool event. Raised = false; Parameter param = new Parameter("num", "int", "1"); param. Value. Changed += delegate(object sender, Value. Changed. Event. Args e) { Assert. Are. Equal("42", e. New. Value); Assert. Are. Equal("1", e. Old. Value); Assert. Are. Equal("num", e. Parameter. Name); event. Raised = true; }; param. Value = "42"; //should fire event. Assert. Is. True(event. Raised, "Event was not raised"); }
Unit testing. NUnit. ASP [Test] public void Test. Example() { // First, instantiate "Tester" objects: Label. Tester label = new Label. Tester("text. Label"); Link. Button. Tester link = new Link. Button. Tester("link. Button"); // Second, visit the page being tested: Browser. Get. Page("http: //localhost/example. aspx"); // Third, use tester objects to test the page: Assert. Are. Equal("Not clicked. ", label. Text); link. Click(); Assert. Are. Equal("Clicked once. ", label. Text); link. Click(); Assert. Are. Equal("Clicked twice. ", label. Text); }
Unit Testing
The End СПАСИБО ЗА ВНИМАНИЕ! ICQ#: 554 -528 -189 Skype: Alexey. mic Vkontakte ID: 315351 E-mail: lxvslnk@gmail. com
- Slides: 19