blogs

miércoles, 20 de mayo de 2015

Unity Test

Unit tests give developers and testers a quick way to look for logic errors in the methods of classes in Visual C#, Visual Basic, and Visual C++ projects. A unit test can be created one time and run every time that source code is changed to make sure that no bugs are introduced.
Additional test Attributes: Expand this section to show commented-out methods that can be used to include initialization and cleanup by using the following attributes:
a. [ClassInicialize()]: Use classInicialize to run code before we run the first test in the class.
b. [ClassCleanUp]: Use classCleanup to run code after all tests in a class have run.
c. [TestInitialize()]: Use TestInicialize to run code before we run each test.
d. [TestCleanUp()]: Use TestCleanUp to run code after each test has run.
e. [TestMethod]: This is the test.


For Example:















No hay comentarios:

Publicar un comentario