About 7,600,000 results
Open links in new tab
  1. What is unit testing and how do you do it? - Stack Overflow

    Mar 16, 2009 · Exact duplicate of many posts: What is unit testing? What Makes a Good Unit Test? New to Unit Testing Unit Testing - definitions Learning Unit Testing How to properly …

  2. What's the difference between unit tests and integration tests?

    A unit test tests code that you have complete control over whereas an integration test tests how your code uses or "integrates" with some other code. So you would write unit tests to make …

  3. testing - What is the difference between unit tests and functional ...

    A well explained real-life analogy of unit testing and functional testing can be described as follows, Many times the development of a system is likened to the building of a house. While this …

  4. How to unit test with ILogger in ASP.NET Core - Stack Overflow

    Apr 15, 2017 · How to unit test with ILogger in ASP.NET Core Asked 8 years, 6 months ago Modified 3 months ago Viewed 285k times

  5. c# - Mocking EF core dbcontext and dbset - Stack Overflow

    Jan 16, 2019 · I am using ASP.NET Core 2.2, EF Core and MOQ. When I run the test I am getting this error: Message: System.NotSupportedException : Invalid setup on a non-virtual …

  6. What is a reasonable code coverage % for unit tests (and why)?

    If you were to mandate a minimum percentage code-coverage for unit tests, perhaps even as a requirement for committing to a repository, what would it be? Please explain how you arrived …

  7. unit testing - When should I mock? - Stack Overflow

    Sep 1, 2008 · I have a basic understanding of mock and fake objects, but I'm not sure I have a feeling about when/where to use mocking - especially as it would apply to this scenario here.

  8. c# - What is the [fact] attribute? - Stack Overflow

    Thanks, I assumed it was part of the Visual Studio unit test framework, hence why I didn't get any meaningful results. What's the difference between and ? The [Fact] attribute is used by xUnit …

  9. c# - Best way to test exceptions with Assert to ensure they will be ...

    Apr 12, 2009 · Many unit testing frameworks implement assertion failures as exceptions. So the Assert.Fail () in the second case will get caught by the catch (Exception) block, which will hide …

  10. .net - How to test a WPF user interface? - Stack Overflow

    Sep 12, 2008 · Mike Two has a real easy getting-started on unit testing WPF, but without considering the threading issue. Josh Smith has some thoughts on the threading issue in this …