Example #1
0
        public void Match_GivenNullSpan_ReturnsFalse()
        {
            var sut = new GenericCodeSpanTranslator();

            var result = sut.Match(null);

            Assert.IsFalse(result);
        }
Example #2
0
        public void Match_GivenCodeSpan_ReturnsTrue()
        {
            Span codeSpan = SpanHelper.BuildSpan("a", SpanKind.Code);

            var sut = new GenericCodeSpanTranslator();

            var result = sut.Match(codeSpan);

            Assert.IsTrue(result);
        }