public void MachineNameLogEventContextProvider_AddProperties_AddsProperty() { var provider = new MachineNameLogEventContextProvider(); var logEvent = new LogEvent() { EventName = "Test event", Properties = new Dictionary <string, object>() }; provider.AddProperties(logEvent, null); Assert.AreEqual(Environment.MachineName, logEvent.Properties["Machine Name"]); }