public static DataSpeed MegabytesPerSecond(this double value)
 {
     return(DataSpeed.FromMegabytesPerSecond(value));
 }
Esempio n. 2
0
 public void Should_parse_given_megabytes_per_second_representation(string input, double expected)
 {
     Assert.AreEqual(DataSpeed.FromMegabytesPerSecond(expected), DataSpeedParser.Parse(input));
     Assert.AreEqual(DataSpeed.FromMegabytesPerSecond(expected), DataSpeedParser.Parse(input.ToLower()));
     Assert.AreEqual(DataSpeed.FromMegabytesPerSecond(expected), DataSpeedParser.Parse(input.ToUpper()));
 }