Exemplo n.º 1
0
 public static DataSpeed KilobytesPerSecond(this double value)
 {
     return(DataSpeed.FromKilobytesPerSecond(value));
 }
Exemplo n.º 2
0
 public void Should_parse_given_kilobytes_per_second_representation(string input, double expected)
 {
     Assert.AreEqual(DataSpeed.FromKilobytesPerSecond(expected), DataSpeedParser.Parse(input));
     Assert.AreEqual(DataSpeed.FromKilobytesPerSecond(expected), DataSpeedParser.Parse(input.ToLower()));
     Assert.AreEqual(DataSpeed.FromKilobytesPerSecond(expected), DataSpeedParser.Parse(input.ToUpper()));
 }