473,385 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Mock objects for nunit tests?

Hi;

Are there mock objects anywhere that I can use to write nunit tests for my
code behind methods?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Mar 17 '06 #1
4 2362
Yep, do a search in sourceforge for "mockobjects".

Cheers
Mark
"David Thielen" <th*****@nospam.nospam> wrote in message
news:0B**********************************@microsof t.com...
Hi;

Are there mock objects anywhere that I can use to write nunit tests for my
code behind methods?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Mar 17 '06 #2
Hi;

what I found there was:
NUnitASP - latest release 11030-04 - definitely no 2.0 support
..NET Mock Objects - latest release 3-10-06 but no ASP mock objects
EasyMock.NET - latest release 11-9-04 - definitely no 2.0 support
NMock - no mock objects of any of the .NET API - and they suggest you don't
mock the .NET API with it.

Am I missing one? Because I don't think any of these will work. What I need
is a System.Web.UI.Page mock object so I can then test my code behind in
nunit.

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

"Mark" wrote:
Yep, do a search in sourceforge for "mockobjects".

Cheers
Mark
"David Thielen" <th*****@nospam.nospam> wrote in message
news:0B**********************************@microsof t.com...
Hi;

Are there mock objects anywhere that I can use to write nunit tests for my
code behind methods?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com


Mar 17 '06 #3
Hi Dave, sorry, I know of no UI.Page mock objects..

However, I do remember there being an article on UI.Page somewhere on
www.thecodeproject.com

hth
Cheers
Mark
"David Thielen" <th*****@nospam.nospam> wrote in message
news:AF**********************************@microsof t.com...
Hi;

what I found there was:
NUnitASP - latest release 11030-04 - definitely no 2.0 support
.NET Mock Objects - latest release 3-10-06 but no ASP mock objects
EasyMock.NET - latest release 11-9-04 - definitely no 2.0 support
NMock - no mock objects of any of the .NET API - and they suggest you
don't
mock the .NET API with it.

Am I missing one? Because I don't think any of these will work. What I
need
is a System.Web.UI.Page mock object so I can then test my code behind in
nunit.

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

"Mark" wrote:
Yep, do a search in sourceforge for "mockobjects".

Cheers
Mark
"David Thielen" <th*****@nospam.nospam> wrote in message
news:0B**********************************@microsof t.com...
> Hi;
>
> Are there mock objects anywhere that I can use to write nunit tests for
> my
> code behind methods?
>
> --
> thanks - dave
> david_at_windward_dot_net
> http://www.windwardreports.com
>


Mar 17 '06 #4
Hi.

We developped such a tool: POCMock
(http://www.prettyobjects.com/POCMock.aspx)

The .NET v2.0 version (POCMock2) is available but Standard version
only. With standard version, you can't mock libraries having more than
50 classes (but it is a free tool).

With Professional and Enterprise versions, you can mock what ever you
want. These version will be available soon (in March 2006).

Cheers.

Ludovic Dubois.

Mar 17 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: ischenko | last post by:
There is a (relatively) widely used technique in unit testing, called mock objects. There is even a pMock library which provides a Mock class for a Python environment. Given the "duck typing"...
6
by: Peter Rilling | last post by:
My development team is using VS.NET with VSS integration. They are able to check in and out from within VS.NET. We also use NUnit for testing our libraries. Currently our entire solution is...
1
by: Klas Mellbourn | last post by:
I have several assemblies, in separate dll:s, each with nunit tests embedded. Every assembly requires its own config file. I would like to run all nunit tests on the same command line. Like this: ...
2
by: Sky Kim | last post by:
Hi, all. I've know NUnit for a while, now I try to use it. Most of application I develope is data base driven. I want to test data layer most with may input and checking the result, then compare...
4
by: geoffblanduk_nospam | last post by:
I have an NUnit test plan with well over 500 tests. I now need to produce a test plan document for these tests - documenting them one by one with Word is a painfull task. I was thinking that...
6
by: Ray Tayek | last post by:
hi, i am preparing to teach a class in c++ and would like to intoduce some unit testing. i can make unit tests in c# using this dll and nant from the command line. i am using visual c++ 2005...
3
by: Joe Van Dyk | last post by:
Say I've written a class that wraps around a particular (complex) communication service library. I want to unit test objects that use that communication service. Is the "best practice" to...
2
by: j | last post by:
I've used NUnit before, but I've never had this problem. I am trying to test a web service. I've written my tests, decorated the fixture, and the tests and everything compiles, but when I load...
0
by: Fuzzyman | last post by:
Mock 0.4.0 has just been released, the first release in about ten months (but worth the wait). Mock is a simple library for testing: specifically for mocking, stubbing and patching. * Mock...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.