public void Error_ReturnsNone()
        {
            var result = ValueOrErrorExamples.IntParser(ValueOrError.WithError("xxx"));

            IsFalse(result.HasValue);
        }
        public void IntPrefexReturnsNone_IfFollowedByJunk()
        {
            var result = ValueOrErrorExamples.IntParser(ValueOrError.WithValue("Int:no number here"));

            IsFalse(result.HasValue);
        }
        public void ValueOtherThanIntPrefex_ReturnsNone()
        {
            var result = ValueOrErrorExamples.IntParser(ValueOrError.WithValue("xxx"));

            IsFalse(result.HasValue);
        }
        public void IntPrefex_ReturnsInt()
        {
            var result = ValueOrErrorExamples.IntParser(ValueOrError.WithValue("Int:6"));

            AreEqual(6, result.Value);
        }