c# - Could we use only one ClassInitialize for all the Unit Testing classes? -
i started internship job consists of seting unit tests on projects.
i have implemented dozens of tests , want create mechanism restores original database after or before each run.
i have necessary scripts create, populate , drop database, don't want call mechanism each test classes, instead call once.
is possible create classiniatialize()
called once when start 1 or tests?
edit
all i/you need use assemblyinitialize() , assemblycleanup() , resolved, ;)
all i/you need use assemblyinitialize() , assemblycleanup() , resolved, ;)