concept Method Attribute in category c#

appears as: Method Attribute
Code like a Pro in C#

This is an excerpt from Manning's book Code like a Pro in C#.

Table 6.1 Test method attributes and when they run

Method Attribute

When does it run?

[ClassInitialize]

Before any of the tests

[TestInitialize]

Before every test

[TestCleanup]

After every test

[ClassCleanup]

After all the tests