Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Quick test code option in VS2010

Is it possible to execute code quick test in VS2010?

For example I would like to test code below just selecting it in code editor and execute it by passing variables?

 public static int GetInt(object value)
    {
        int result;
        Int32.TryParse(GetString(value), out result);
        return result;
    }
like image 671
Tomas Avatar asked Mar 15 '11 14:03

Tomas


1 Answers

Use this MSDN article as a starting point on how to use the immediate window. This will allow you to test the entire GetInt method.

like image 168
m0sa Avatar answered Oct 22 '22 20:10

m0sa