Example #1
0
        public void ChannelDataExtensions_GetDataDelimiterOrDefault_Returns_Delimter_Correctly()
        {
            var result = ChannelDataExtensions.GetDataDelimiterOrDefault(string.Empty);

            Assert.IsNotNull(result);
            Assert.AreEqual(",", ",");

            result = ChannelDataExtensions.GetDataDelimiterOrDefault("|");
            Assert.IsNotNull(result);
            Assert.AreEqual("|", "|");
        }
Example #2
0
 /// <summary>
 /// Gets the data delimiter for the log or the default data delimiter.
 /// </summary>
 /// <param name="log">The log.</param>
 /// <returns>The data delimiter.</returns>
 public static string GetDataDelimiterOrDefault(this Witsml141.Log log)
 {
     return(ChannelDataExtensions.GetDataDelimiterOrDefault(log?.DataDelimiter));
 }