Review the BeanProxy Disclaimer

Abstract

BeanProxy is a C# (.NET 3.5) library housing classes that facilitates unit testing. Any non-static, public interface/class/or abstract class can be proxied and then its methods can be overriden and configured.

Preface

As a software developer writing unit tests for your work, you may want to have one function fake a specific action in order to prove the behavior of another function.

  public virtual void A()
  {
    if (B())
    {
      //...
    }
    //...
  }
  public virtual bool B()
  {
    bool result;
    //...
    return result;
  }
Consider that you are trying to test A() and you don't want B() called. BeanProxy makes this very easy to do. It also does much more. The purpose of this wiki is to explain what BeanProxy can do and how to use it.

On May 6th 2010, I completed adding a lot of documentation to this wiki. The following links should be useful for new users.
Basic Examples
ProxyManager
MethodConfig
EventAccess
Advanced Examples

I have made just a couple references to some internal classes for those that want to know.
Builder
IProxy

Other

changesets

Last edited May 6, 2010 at 4:44 PM by payonel, version 28

Comments

No comments yet.