Mocking indexer setters with Moq

Posted by: More Whidbey stuff, on 15 Jun 2009 | View original | Bookmarked: 0 time(s)

I quite like MoQ because it makes sense for me. Shamefully, Ive always had some trouble understanding test code that was using mocks built with other frameworks. With MoQ, I can just grok it for some reason. Its just super-clear to me. It doesnt mean I have any idea how it really works but for now Im just happy with the magic. Anyway, yesterday I wanted to check that a controller action was setting some Application variable (lets not get into the debate on whether or not it should do that at all)....

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: 1060 | Hits: 16

Similar Posts

  • Mocking indexer getters with Moq more
  • The Technology Post for June 16th, 2009 more
  • Monkey Patching CLR Objects 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