Questions tagged [nmock2]

NMock2 is a library for assisting test driven development of C# code by providing a dynamic Mock Object framework for .NET interfaces.

16 questions
0
votes
1 answer

Why does a mocked method swallow exceptions?

Current Implementation: void IFileManager.DeleteFile( string argFilename ) { throw new ArgumentException( "Specified filename was not found" ); } Unit Test Expect.Once.On( m_MockFileManager ).Method( "DeleteFile" ); .... .... The unit test…
O.O
  • 11,077
  • 18
  • 94
  • 182
1
2