The Artima Developer Community
Sponsored Link

Agile Buzz Forum
Mocking Static Classes and Members

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Jay Flowers

Posts: 369
Nickname: jflowers
Registered: Sep, 2005

Jay Flowers is a .NET Developer working as a Design Lead at Northrop Grumman.
Mocking Static Classes and Members Posted: Apr 27, 2006 5:53 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by Jay Flowers.
Original Post: Mocking Static Classes and Members
Feed Title: JayFlowers
Feed URL: http://feeds.feedburner.com/jayflowers/Ombs
Feed Description: Just a guy that likes to make software.
Latest Agile Buzz Posts
Latest Agile Buzz Posts by Jay Flowers
Latest Posts From JayFlowers

Advertisement
There have been some recent posts on mocking statics. Static members that is and I remember an older post on mocking a static class. This is all do able if you use indirection. For a static member you can use a delegate to provide the indirection. I will try to keep with Steve Eichert’s example. [...]

Read: Mocking Static Classes and Members

Topic: Sunday afternoon drinks Previous Topic   Next Topic Topic: Second City night

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use