public void ThrowExceptionIfIcaoCodeIsInvalid_WithValidCodes_ShouldNotThrow_InvalidIcaoCodeException(
            string icaoCode)
        {
            //Act
            Action act = () => IcaoCodeChecking.ThrowExceptionIfIcaoCodeIsInvalid(icaoCode);

            //Assert
            act.Should().NotThrow();
        }
Esempio n. 2
0
 /// <summary>
 ///     Constructor from <c>string</c>.
 /// </summary>
 /// <param name="icaoCode">String airport ICAO code.</param>
 /// <exception cref="InvalidIcaoCodeException">
 ///     If <paramref name="icaoCode" /> is invalid string ICAO code.
 /// </exception>
 public IcaoCode([NotNull] string icaoCode)
 {
     IcaoCodeChecking.ThrowExceptionIfIcaoCodeIsInvalid(icaoCode);
     Code = icaoCode;
 }