473,397 Members | 2,056 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,397 software developers and data experts.

Mocking Objects in Dotnet with Typemock Isolator Mocking Frameworkfor .Net Unit Testing

The advantages of unit testing are well known, giving development
teams a safety net to facilitate change, ease integration and supply
live documentation.Unit testing of small logical code is quite easy
and can show value quickly.
But in real life, our code will use other classes and components. If
this happens, things can get quite fragile and the tests will quickly
become system tests.
Typemock Isolator enables developers to unit test all their code by
magically disconnecting and isolating external components.
Typemock Isolator uses aspect-oriented technology to redirect calls
from the real code. This enables developers to define the behavior of
the external component required for a tested scenario. For example,
you can simulate that the disk is full when writing to a database by
instructing Typemock Isolator to throw an OutOfDiskSpaceException when
writing to the database. This is a scenario that will be nearly
impossible to test without Typemock Isolator. The developer defines
the behavior in the actual unit test and Typemock Isolator
automatically isolates all required components.

To learn more - http://www.typemock.com/Product.html
Aug 22 '08 #1
0 950

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

Similar topics

72
by: Jacob | last post by:
I have compiled a set og unit testing recommendations based on my own experience on the concept. Feedback and suggestions for improvements are appreciated: ...
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: Terry | last post by:
I'm looking at NMock2 as a framework to create mock objects during my unit testing. One part that I'm trying to understand is that it will mock interfaces, not concrete classes. I normally don't...
10
by: gamename | last post by:
Hi, Currently, I'm using CUnit as a unit test tool. But there is one thing it really lacks: function mocking. In other words, changing what really gets called in subordinate routines so that a...
6
by: Silfheed | last post by:
Heyas So we have the following situation: we have a testee.py that we want to automatically test out and verifiy that it is worthy of being deployed. We want our tester.py to test the code for...
0
by: Olorin | last post by:
Hi all. In one of our classes I defined a .Files property that exposes an instance of the HttpFileCollection class. At runtime this instance will be retrieved from...
3
by: andho | last post by:
I need to mock a resource like a directory in one of my unit tests. The method is checking if the directory exists and i don't want to create a directory just for testing purposes so is there anyway...
8
by: Andrus | last post by:
Code below causes error in class definition line .....Isolator<T>' does not implement interface member 'System.Collections.IEnumerable.GetEnumerator()'. 'Myapp.Isolator<T>.GetEnumerator()'...
0
by: mo.sparrow | last post by:
The advantages of unit testing are well known, giving development teams a safety net to facilitate change, ease integration and supply live documentation.Unit testing of small logical code is quite...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.