public void EndClientSpan_NullClientTrace_DoesntThrow() { var returnCode = fixture.Create <short>(); var tracerClient = SetupZipkinClient(); spanTracerStub = GetSpanTracerStub(); var called = false; spanTracerStub.Stub(x => x.ReceiveClientSpan(Arg <Span> .Is.Anything, Arg <short> .Is.Equal(returnCode))) .WhenCalled(x => { called = true; }); tracerClient.EndClientTrace(null, returnCode); Assert.IsFalse(called); }