public static DataSpeed PetabytesPerSecond(this double value)
 {
     return(DataSpeed.FromPetabytesPerSecond(value));
 }
Beispiel #2
0
 public void Should_parse_given_petabytes_per_second_representation(string input, double expected)
 {
     Assert.AreEqual(DataSpeed.FromPetabytesPerSecond(expected), DataSpeedParser.Parse(input));
     Assert.AreEqual(DataSpeed.FromPetabytesPerSecond(expected), DataSpeedParser.Parse(input.ToLower()));
     Assert.AreEqual(DataSpeed.FromPetabytesPerSecond(expected), DataSpeedParser.Parse(input.ToUpper()));
 }