public void Translate_TemplateBuilder_Write_IsNeverCalled() { ITemplateBuilder templateBuilder = new FailingTemplateBuilder(); var sut = new IgnoreSpanTranslator(); sut.Translate(SpanHelper.BuildSpan("a"), templateBuilder); }
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); }
public void ImplementsInterface() { var sut = new IgnoreSpanTranslator(); Assert.IsInstanceOfType(sut, typeof(ISpanTranslator)); }