📁 Sangam Dhakal - Portfolio v2.0 - Netscape Navigator 4.0
_
□
×

πŸ“š .NET Interview Questions

1325 questions for senior .NET engineer interviews, each with a 30-second answer, the full answer, a deep dive, the follow-ups interviewers ask next, and real-world production problems.

Test Types

Unit, integration, functional, end-to-end, contract, load, stress, smoke, regression and mutation testing, and what each one proves for a .NET 10 service.

  1. Should integration tests use the EF Core in-memory provider instead of a real database? Why or why not?
    Beginner Theory Test Types
  2. How do you test that an ASP.NET Core endpoint behaves correctly when a third-party API it calls is slow or returns errors?
    Intermediate Theory Test Types
  3. What is boundary-value analysis, and how does it help you write tests that kill mutants?
    Mid-Level Theory Test Types
  4. What is the difference between unit, integration and end-to-end tests? Explain what each one proves, how fast and costly each is, and where you draw the lines in an ASP.NET Core API.

    Unit, integration and end-to-end tests: what each proves, their speed, cost and failure signal, and where the boundaries sit in a .NET 10 ASP.NET Core API.

    Beginner Theory Test Types Β· πŸ”— 3 follow-ups
  5. What are smoke, regression and functional tests? Explain what each one checks, how they relate to unit and integration tests, and where each fits in a release pipeline for a .NET service.

    Smoke, regression and functional tests: what each checks, how they overlap with unit, integration and E2E tests, and where they run in a CI/CD release pipeline.

    Junior Theory Test Types Β· πŸ”— 2 follow-ups
  6. How do you write integration tests for an ASP.NET Core API? What do you run for real (database, HTTP pipeline, authentication) and what do you fake, and how do you keep the tests fast, isolated and reliable?

    Integration tests for ASP.NET Core 10 APIs: WebApplicationFactory, real SQL Server with Testcontainers, faking third-party HTTP and authentication, and keeping state isolated and the suite fast.

    Intermediate Theory Test Types Β· πŸ”— 2 follow-ups
  7. What is the difference between load, stress, soak and spike tests? What question does each one answer for a .NET API, which tools would you use (k6, Azure Load Testing, NBomber), and what would you look at in the results to decide whether the service is ready?

    Load, stress, soak and spike tests as distinct test types: the question each answers, workload shapes, tool choice (k6, Azure Load Testing, NBomber and its licence), pass/fail criteria and what to read in the results for a .NET 10 API.

    Mid-Level Theory Test Types Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  8. What is mutation testing, and why can a test suite with 90% code coverage still be weak? Explain how Stryker.NET works, what a mutation score means, how you read surviving mutants, and what it costs to run.

    Mutation testing with Stryker.NET: why line coverage overstates test quality, how mutants are generated and killed, mutation score and thresholds, surviving mutants, incremental runs and run-time cost.

    Mid-Level Theory Test Types Β· πŸ”— 2 follow-ups Β· πŸ›  1 real-world
  9. You are the senior engineer on a new .NET 10 service: an orders API on Azure that publishes events to Service Bus and calls a payment provider. Design its test strategy. Which test types do you use and roughly how many, where does each run, what blocks a merge or a release, and how will you know the strategy is working?

    Designing a test strategy for a new .NET 10 service: choosing test types by risk, the shape and size of each layer, where each runs in CI/CD, merge and release gates, ownership, and the metrics that show whether the strategy works.

    Senior Architecture Test Types Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world
  10. Tell me about a time a bug reached production even though the code had high test coverage, say 90%. What kind of bug was it, why didn't the tests catch it, and what did you change in your test strategy afterwards?

    A real-world escaped defect despite high coverage: diagnosing why the suite missed it (mocked boundaries, missing contract and integration tests, weak assertions), the incident response, and the test strategy changes that followed.

    Senior RealWorldScenario Test Types Β· πŸ”— 3 follow-ups Β· πŸ›  1 real-world

🌐 Sangam's Webring

βͺ Previous 🏠 Main Next ⏩
πŸ’¬ Chat with me