NUnit in Visual Studio for C#: Tests not found bug

I wanted to use some syntax in N-Unit to compare equality of double[] arrays within a certain tolerance. 


So I installed N-Unit and tried it, but I kept getting a bug about the tests not being found. 

Turns out, you have to annotate your test methods with [Test] instead of [TestMethod] in C# in order for N-Unit to detect your tests. Stack Overflow was down, and I misplaced the link. but the preview text on Google was my lifesaver for this one lol. 

Comments

Popular posts from this blog

Unleashing my inner Disney Princess ✩₊˚.⋆☾⋆⁺₊✧ at the 2024 Disney Princesses Half Marathon

The 20-something types of Computer Science majors

The Evenstar