Archives for November 2006

When to MockObject?

In my previous post I showed how to mock future instances. Now we will see when to use MockObject.
What is the difference?
The difference is quite simple. But before we delve into it we should talk about the 2 objects that are associated with each mock.
Each mock has a controller that controls the behavior. This is […]

26 November 2006 | .NET Tests | No Comments

How To Isolate Future Instances

One of the benifits of testing with TypeMock is the ability to mock future objects. Future objects are instances that will be created within the tested code.
 
Here is an example:

private void InitializeComponent()
{
this.okButton = new System.Windows.Forms.Button();
this.cancelButton = new System.Windows.Forms.Button();
this.ignoreButton = new System.Windows.Forms.Button();
}

We create 3 new Buttons […]

19 November 2006 | .NET Tests | 2 Comments

Firing Events Made Easy

I have already posted about Firing Events (There is a “Fire Event” party pic to the right). Here is how to use reflective mocks to Fire Events.
Here is the example again: 

public void Example()
{
Button button = new Button();
button.Click += new EventHandler(button_Click);
}

private void button_Click(object sender, EventArgs e)
{
// Do Somethings here
} […]

19 November 2006 | .NET Tests | 3 Comments

How TypeMock Simplifies Unit Testing

Are you having trouble explaining TypeMock to your colleges?
We have added a small page that will help you.
Click Here

Bookmark at:          

19 November 2006 | .NET Tests | No Comments

See How Easily you can Love Your Job

If you are reading this you are probably the developer we are looking for.
TypeMock is expanding and we are looking for .NET developers who have a passion for Bleeding Edge Issues like Mocking (of course), Test Driven Development and Aspect Oriented Development.
We work in a dynamic environment and we have the infrastructure to support home offices […]

3 November 2006 | Product | No Comments

New and Noteworthy - Version 3.6.1

We have released the patch version 3.6.1
Here are the highlights
Support Vista   
TypeMock.NET now installs on Windows Vista RC2 Machines.Install as Administrator and Enable Register KeysNote: The Tracer does NOT work on Vista Machines.

Support Mocking Hidden Methods

It is possible to mock ‘hidden’ methods.Mock overridden base methods with CallBaseMock overloaded Static methods with CallStatic

Default Implementation of Dynamic Types 

TypeMock.NET now creates a […]

3 November 2006 | .NET Tests, Release | Comments Off

Search Eli Lopian’s Blog (TypeMock)

Navigation

Recent Posts

Categories

Archives

Managment