예제 #1
0
 public static DataSpeed BytesPerSecond(this ushort value)
 {
     return(DataSpeed.FromBytesPerSecond(value));
 }
예제 #2
0
 public void Should_parse_given_bytes_per_second_representation(string input, long expected)
 {
     Assert.AreEqual(DataSpeed.FromBytesPerSecond(expected), DataSpeedParser.Parse(input));
     Assert.AreEqual(DataSpeed.FromBytesPerSecond(expected), DataSpeedParser.Parse(input.ToLower()));
     Assert.AreEqual(DataSpeed.FromBytesPerSecond(expected), DataSpeedParser.Parse(input.ToUpper()));
 }