C#

C#

Made by DeepSource

Method marked as TestMethod declared in a non-test class CS-W1013

Bug risk
Major

Test methods are usually denoted via the [TestMethod] attribute. Such methods must be declared in classes with the [TestClass] attribute. Failing to do so might result in the test-suite not executing the said test method. It is therefore recommended that you either drop the [TestMethod] altogether, or add the [TestClass] attribute to the class containing this test.