When performing unit testing in ASP.NET Core, what attribute is commonly used to signify a method as a test method?
- [TestMethod]
- [UnitTest]
- [Test]
- [TestFunction]
In ASP.NET Core unit testing, the [Test] attribute is commonly used to signify a method as a test method. This attribute is part of popular unit testing frameworks like MSTest and xUnit.
Loading...
Related Quiz
- In your ASP.NET Core application, you wish to change some default settings like the application's timezone and culture. Which file should you inspect and modify?
- How can you enforce a strict null check in Razor views to catch potential null reference issues at compile-time?
- When creating a new ASP.NET Core project, what does the "API" template primarily configure the project for?
- With the shift from project.json, the newer file format that handles project configurations in .NET Core 2.0 and later is _________.
- In SignalR, which transport method does it fall back to if WebSockets are not available?