Bangladesh MVPs
Sign in
|
Join
|
Help
Home
RSS for Posts
Atom
RSS for Comments
Email Notifications
Go
Search
Go
Tags
.net
Agile
ajax
asp.net
asp.net MVC
AspNetMvc
Blog Posts
C#
DotNetShoutout
Entity Framework
IoC/DI
jQuery
JustMock
linq
Mock
MVC
Open Source
performance
production
Projects
TDD
Telerik
Uncategorized
unit test
Unity
Community
Home
Blogs
Media
Forums
Wikis
Groups
Video
Job
Archives
April 2012 (1)
March 2012 (2)
February 2012 (1)
January 2012 (2)
December 2011 (5)
November 2011 (1)
October 2011 (2)
September 2011 (1)
August 2011 (2)
July 2011 (2)
June 2011 (1)
May 2011 (4)
March 2011 (1)
February 2011 (2)
December 2010 (3)
November 2010 (3)
October 2010 (5)
September 2010 (5)
August 2010 (5)
July 2010 (4)
June 2010 (6)
May 2010 (15)
April 2010 (21)
March 2010 (6)
February 2010 (9)
January 2010 (4)
December 2009 (8)
November 2009 (9)
October 2009 (2)
September 2009 (9)
August 2009 (5)
July 2009 (4)
June 2009 (8)
May 2009 (7)
April 2009 (12)
March 2009 (14)
February 2009 (13)
January 2009 (3)
December 2008 (4)
November 2008 (1)
October 2008 (13)
September 2008 (2)
August 2008 (4)
July 2008 (1)
June 2008 (2)
Browse by Tags
All Tags
»
JustMock
(
RSS
)
Agile
AspNetMvc
C#
F#
linq
Mocking
MSIL
MSpec
Nuget
OpenAccess
PostSharp
RLINQ
SharePoint
Telerik
unit test
Assert the order of expected calls over instances
by
Mehfuz's WebLog
You want to assert that user is validated before withdrawing amount from an account. JustMock lets you specify the order in which your setups should be executed. This helps you to identify the exact way in which a particular logic is implemented. ...
Filed under:
unit test
,
C#
,
JustMock
,
Mocking
Asserting a mock with test framework
by
Mehfuz's WebLog
When asserting an expected call for its number of occurrences or may be just to verify if the setup/arrange is acted as intended, the tool generally raises assertion that points us to the reason why the test failed. Different mocking tools use different...
Filed under:
unit test
,
C#
,
JustMock
,
Mocking
Future mocking with #IgnoreInstance
by
Mehfuz's WebLog
In my previous post, i showed how JustMock picks mock expectations based on current context without the instance being injected. Based on feedback we found that It’s sometimes confusing and often does not work as intended. However, the context of this...
Filed under:
C#
,
Telerik
,
JustMock
,
Mocking
Future mocking revisited
by
Mehfuz's WebLog
Previously , I have posted how it is possible to mock a method without passing the dependency through a constructor / calling method. This is something true for third party controls and tools where we have little control over how its created. You can...
Filed under:
C#
,
JustMock
,
MSpec
,
Mocking
PostSharp and JustMock side by side.
by
Mehfuz's WebLog
In this post I will show mocking a member call inside a postsharp aspect. There were previously compatibility issues between both of the tools running side by side which is now been officially fixed with the most recent release of that tool (>= 2.1...
Filed under:
C#
,
JustMock
,
MSpec
,
PostSharp
Fake a member without worrying about passing the dependency
by
Mehfuz's WebLog
I have came across this several times in forum (telerik) on how I can really fake an item yet I don’t want to pass the instance as an argument. Ideally, this is not a best design but there are third- partly libraries that you have little control over...
Filed under:
C#
,
Agile
,
JustMock
Running JustMock profiler outside of Visual Studio
by
Mehfuz's WebLog
In this post , I would be focusing on the issue that generally comes to query on how to run JustMock with standalone tools like nunit or msbuild console. Since mocking concrete method works initializing the .net profiler that is set using two variables...
Filed under:
unit test
,
Telerik
,
JustMock
Mocking MsCorlib members
by
Mehfuz's WebLog
In this post , I will show how you can mock members from MsCorlib. This is more of an introductory post and shows what you need to do in order to successfully mock an MsCorlib member. If you are planning to mock File or DateTime then the process...
Filed under:
unit test
,
C#
,
Telerik
,
JustMock
Mocking constructor
by
Mehfuz's WebLog
Often we end up in a situation where constructor call on the target type requires us to include a config file in our test project or requires firing up some external process. To better illustrate this if we create an entity framework data container...
Filed under:
C#
,
MSIL
,
Agile
,
JustMock
NuGet JustMock
by
Mehfuz's WebLog
As most of us already know JustMock got a free edition. The free edition is not a stripped down of the features of the full edition but I would rather say its a strip down of the type you can mock. Technically, free version runs on proxy as...
Filed under:
C#
,
JustMock
,
Nuget
How to raise event for a mocked call.
by
Mehfuz's WebLog
Recently, while i was working with a support issue , i found this interesting piece of test code that i would like to share here. This is actually written by Stefan Lieser (clean code developer from Germany forwarded to me by Jan from Telerik Germany...
Filed under:
C#
,
Agile
,
JustMock
Mocking SPContext.Current with JustMock
by
Mehfuz's WebLog
Today, I happen to find an interesting post on mocking SharePoint context using TypeMock. Being a JustMocker, i thought rather to follow the footsteps and see if can do the same with JustMock. I am no SharePoint expert. Occasionally, I use a Windows 2003...
Filed under:
C#
,
JustMock
,
SharePoint
Back to school : Getting to know F#
by
Mehfuz's WebLog
This post starts with a basic introduction of F# and finally ends up writing a simple unit test for an F# member. For those who don’t know what F# is all about, Its a product from Microsoft research and now part of VS 2010 family. Actually from Wikipedia...
Filed under:
unit test
,
Agile
,
JustMock
,
F#
Mocking LINQ to SQL [Continued…] using RLINQ
by
Mehfuz's WebLog
After making the post on mocking LINQ to SQL, this morning i was having a chat with Stephen forte and come to know that telerik a has product named RLINQ. RLINQ is built on top of OpenAccess and it supports variety of databases. Being curious, i thought...
Filed under:
linq
,
C#
,
Telerik
,
JustMock
,
OpenAccess
,
RLINQ
Unit testing LINQ to SQL
by
Mehfuz's WebLog
Unit testing LINQ to SQL repositories can be very challenging. Unit testing such requires faking hard to mock classes and requires simulation to return your custom data for a particular LINQ statement. In this post, i will show how you can mock your LINQ...
Filed under:
linq
,
unit test
,
C#
,
JustMock
More Posts
Next page »