All unit tests running against a code base need to pass. The 100% Pass test metric is as the name implies.If a test class is annotated with then none of its test methods will be executed. A test method annotated with will not be executed. Sometimes it so happens that our code is not completely ready while running a test case.To start, we'll add a copy of Steve's testing library to the solution and also a new XUnit test project called. I like to try and group my tests to make them easier to find and maintain. I've decided on two test groupings, display tests and modal options tests.I'm going to use the super-trivial and clichéd \"calculator\", shown below:The Add method takes two numbers, adds them together and returns the result.We'll. Test projects specify the test runner using an ordinary element, as seen in the following sample project file: Where is the test host, xunit is the test framework.These will be reflected and called when the first TestFixture is created by the test runner for every test class. Derived test fixtures that modify global machine or other environmental state must implement a public static void EnsureReset() method resets the state to a reasonable default. Implements an that is composed of other test fixtures.Assembly Trait Attribute Assembly Trait Discoverer Before After Test Attribute Class Data Attribute Collection Attribute Collection Behavior Collection Behavior Attribute Collection Definition Attribute Data Attribute Data Discoverer Data Discoverer Attribute Exception. ↖ Xunit Collection ↖ Namespaces ↖ Assemblies.