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

📚 Interview question

What is boundary-value analysis, and how does it help you write tests that kill mutants?

Mid-Level Theory Intermediate

🎯 Key points

  • Test at and either side of each boundary ($99.99, $100.00, $100.01)
  • Off-by-one and wrong-operator bugs cluster at boundaries
  • Pair with equivalence partitioning: one value per class of input
  • Cheap way to raise defect detection without more tests of the same kind
  • Use [Theory] with [InlineData] rows per boundary
  • Kills equality and boundary mutants reported by Stryker.NET
  • Prioritise boundaries where a mistake costs money or access (fees, GST, age, limits)
  • Watch decimal precision and rounding at boundaries

⏱ 30-second answer

Boundary-value analysis picks test inputs at and either side of each boundary in a rule, because off-by-one mistakes cluster there. For "free shipping from $100", test $99.99, $100.00 and $100.01, not just $50 and $250. It pairs with equivalence partitioning: one value per class of input (below, at, above; AU vs other countries). In xUnit, a [Theory] with [InlineData] rows for each boundary kills the >= → > and >= → <= mutants that Stryker.NET reports as survivors.

🔍 What the interviewer is checking

Checks the candidate can design test inputs, not just count tests.

↩ Usually asked after

More in Test Types

Last updated 23 Nov 2026.

🌐 Sangam's Webring

⏪ Previous 🏠 Main Next ⏩
💬 Chat with me