コード例 #1
0
        public void Match_GivenNullSpan_ReturnsFalse()
        {
            var sut = new ExpressionTranslator();

            var result = sut.Match(null);

            Assert.IsFalse(result);
        }
コード例 #2
0
        public void Match_GivenMarkupCodeGeneratorSpan_ReturnsFalse()
        {
            var span = new Span(new SpanBuilder()
            {
                CodeGenerator = new MarkupCodeGenerator()
            });

            var sut = new ExpressionTranslator();

            var result = sut.Match(span);

            Assert.IsFalse(result);
        }