public void SupportMillisecondsInFormatStrings(string format, string expected)
        {
            var axis = new TimeSpanAxis {
                StringFormat = format
            };
            var formattedValue = axis.FormatValue(TimeSpanAxis.ToDouble(new System.TimeSpan(1, 1, 1, 2, 345)));

            Assert.That(formattedValue, Is.EqualTo(expected));
        }
Esempio n. 2
0
 public void SupportMillisecondsInFormatStrings(string format, string expected)
 {
     var axis = new TimeSpanAxis { StringFormat = format };
     var formattedValue = axis.FormatValue(TimeSpanAxis.ToDouble(new System.TimeSpan(1, 1, 1, 2, 345)));
     Assert.That(formattedValue, Is.EqualTo(expected));
 }