public void AsString_WithSequenceValue_ReturnsNull() { var logEventProperty = new LogEventProperty("test", new SequenceValue(Array.Empty <LogEventPropertyValue>())); string outputValue = logEventProperty.AsString(); Assert.That(outputValue, Is.EqualTo(null)); }
public void AsString_WithScalarValue_ReturnsExpectedString(object scalarValue, string expectedValue) { var logEventProperty = new LogEventProperty("test", new ScalarValue(scalarValue)); string outputValue = logEventProperty.AsString(); Assert.That(outputValue, Is.EqualTo(expectedValue)); }