Over Specification in Tests

Posted by: ISerializable, on 12 Jul 2008 | View original | Bookmarked: 0 time(s)

I've gotten the chance to visit and consult various companies and I see this all the time: Over specification in tests, especially when doing mocks and stubs. One main reason for that is that people use their stub as a mock object (stubs are fake objects that we will not assert on so that we can test something else). here is a small example from something posted on the alt.net mailing list: [Test] public void Can_Return_All_Plans() { IPlanDao mockPlanDao = MockRepository.GenerateMock<IPlanDao>();...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: Agile | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 928 | Hits: 19

Similar Posts

  • Avoid Entrenched Dependencies more
  • WebAii Testing Framework Support for Extended Silverlight RadControls more
  • ObjectContext.SaveChanges is now Virtual/Overridable in EF4 more
  • LLBLGen Pro and SQL Azure more
  • 8 techniques to find problems in your unit tests within 30 seconds more
  • TDD Master Class Day # 3 What I learned today more
  • IDCC conference in Israel – Spet. 14th more
  • PHP Linux Windows ASP.NET Performance Redux ! more
  • Improved type safety when dealing with generic types, generic methods and reflection more
  • Minimizing unit Test Fragility 8 features in Typemock Isolator to help more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD