public void Handle_with_ServerDescriptionChangedEvent_should_trace_event()
        {
            const string traceSourceName = "Handle_with_ServerDescriptionChangedEvent_should_trace_event";
            const string logFileName     = traceSourceName + "-log";
            var          ipAddress       = new IPEndPoint(IPAddress.Parse("1.2.3.4"), 42);
            var          @event          = new ServerDescriptionChangedEvent(
                oldDescription: new ServerDescription(new ServerId(new ClusterId(), ipAddress), ipAddress),
                newDescription: new ServerDescription(new ServerId(new ClusterId(), ipAddress), ipAddress));
            var expectedLogMessage =
                $"{TraceSourceEventHelper.Label(@event.OldDescription.ServerId)}: {@event.NewDescription}";
            var traceSource = CreateTraceSource(logFileName, logFileName);
            var subject     = new TraceSourceSdamEventSubscriber(traceSource);

            subject.Handle(@event);
            var log = ReadLog(traceSource, logFileName);

            log.Should().Contain(expectedLogMessage);
        }
 public static void Handle(this TraceSourceSdamEventSubscriber subject, ServerDescriptionChangedEvent @event)
 => Reflector.Invoke(subject, "Handle", @event);