public void GetsOriginalValueSuccessfully() { var original = new FormattedLogValues("The first number is {first} and the second is {second}", 10.ToString(), 20.ToString()); var originalValue = original.GetOriginalValue(); Assert.Equal("The first number is {first} and the second is {second}", originalValue); }
/// <summary> Replaces the values in the FormattedLogValues instance.</summary> /// <param name="lv">The FormattedLogValues instance.</param> /// <param name="values">The values.</param> /// <returns></returns> public static FormattedLogValues SetValues(this FormattedLogValues lv, params object[] values) { return(new FormattedLogValues(lv.GetOriginalValue(), values)); }