mercredi 30 septembre 2015

Wrtigin VBA Unit Testing Suite

I am tired trying to write a addin that will let me write Unit tests for VBA. I Have a class setup for testing assertions etc. what I am missing is a way to stubing/mocking classes is there a way of doing that?

For clarification I am talking about instantiatinng objects that are pretending to be of a different class. For example, I want to write a mock of Address class that Person class will work with:

Person Class

 Private Home as Address

 Sub ChangeAddress(NewStreetAddress as String)
      Address.Street = NewStreetAddress
 end Sub

Address Class

Dim Street as String

Aucun commentaire:

Enregistrer un commentaire