Esempio n. 1
0
 /// <summary>
 /// <para>Attempts to parse <see cref="DataRate"/> from a string.</para>
 /// <para>In case of failure a <see cref="FormatException"/> is thrown.</para>
 /// </summary>
 public static DataRate Parse(string input) =>
 DataRateParser.Parse(input);
Esempio n. 2
0
 public void Should_throw_FormatException_on_Parse_wrong_format()
 {
     new Action(() => DataRateParser.Parse(@"10 \s")).Should().Throw <FormatException>();
 }