TL;DR How do you test a value object in isolation from its dependencies without stubbing or injecting them?
In Misko Hevery\'s blog post T
Avoid value types with dependencies on non-value types. Also avoid constructors that perform validations and throw exceptions. In your example I'd have a factory type that validates and creates quantities.