View on GitHub

CarbonCopy

A tool for C# and VB.Net programmers

Go to latest release
Download this project as a .zip file Download this project as a tar.gz file

What is it?


CarbonCopy is a Visual Studio Extension that generates the declaration and initialization of an object selected while debugging.


What people are saying about CarbonCopy:


"This tool is a must-have for anyone serious about test automation and refactoring."
      - Me

"CarbonCopy is so lightweight, yet so powerful it should be shipped as part of Visual Studio."
      - My grandmother


CarbonCopy in action


The best way to grasp the potential of the tool is to illustrate it in action with one of many interesting uses.

Suppose you are refactoring a function that is not covered by an automated test. While debugging an actual test case, the function returns an object that would take some time to declare from scratch in a test:


By selecting the object and clicking the "Copy declaration" menu item provided by CarbonCopy, its declaration is generated with the initialization of its current values and copied to the clipboard.


You can then paste this declaration as your expected result in an automated test and refactor the function in full confidence:


You are mocking your services calls with a framework such as Moq? This is another situation where CarbonCopy will help you with the mocking of requests/responses.

Try it


Download the latest release here or even better, install it from the Extensions and Updates manager in Visual Studio.


*** Please note that the C# version is underway and not available yet ***


Support or Contact


Having trouble with CarbonCopy? Please report it here.