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

            var result = sut.Match(null);

            Assert.IsTrue(result);
        }
コード例 #2
0
        public void Match_GivenSpanNotFromModelDeclaration_ReturnsFalse()
        {
            Span span = SpanHelper.BuildSpan("a");

            var sut = new IgnoreSpanTranslator();

            var result = sut.Match(span);

            Assert.IsFalse(result);
        }
コード例 #3
0
        public void Match_GivenModelTypeFromModelDeclaration_ReturnsTrue()
        {
            ModelDeclaration modelDeclaration = SpanHelper.BuildModelDeclaration();

            var sut = new IgnoreSpanTranslator();

            var result = sut.Match(modelDeclaration.ModelType);

            Assert.IsTrue(result);
        }