public void Match_GivenNullSpan_ReturnsTrue() { var sut = new IgnoreSpanTranslator(); var result = sut.Match(null); Assert.IsTrue(result); }
public void Match_GivenSpanNotFromModelDeclaration_ReturnsFalse() { Span span = SpanHelper.BuildSpan("a"); var sut = new IgnoreSpanTranslator(); var result = sut.Match(span); Assert.IsFalse(result); }
public void Match_GivenModelTypeFromModelDeclaration_ReturnsTrue() { ModelDeclaration modelDeclaration = SpanHelper.BuildModelDeclaration(); var sut = new IgnoreSpanTranslator(); var result = sut.Match(modelDeclaration.ModelType); Assert.IsTrue(result); }