Testing C # code without building my application

I am trying to manipulate a string in my web application, but I do not want to compile the entire application to just see the result.

Is there a (preferably free) tool that I can use to perform quick tests, or is there something in VS2008 that I can use?

thanks

+3
source share
6 answers

If you just want to try several statements directly, LINQpad is great for writing short snippets.

LINQPad Home Page

+6
source

Take a look at NUnit

Visual Studio 2008 has a built-in unit test .

+6

/ . , .

# NUnit.

+1

, VS2008.

. , - , .

+1

, , . #, / libs.

0

If the line you want to change is on an ASPX page, you can simply edit the page and save it. A simple update should update the results. If this is a variable value, you can use the Watch Window to change the value.

If you want a software solution to test the method, you can either use the built-in MSTEST , a simple user console application, or one other unit test framework.

0
source

Source: https://habr.com/ru/post/1719428/


All Articles