/// <summary> /// Convert <see cref="SnmpAuthenticationMode"/> to a Meraki raw format. /// </summary> /// <param name="authenticationMode"> /// The <see cref="SnmpAuthenticationMode"/> to convert. /// </param> /// <returns> /// A <see cref="string"/> represeting the same mode. /// </returns> public static string FromEnum(SnmpAuthenticationMode authenticationMode) { return(authenticationMode != SnmpAuthenticationMode.Unknown ? authenticationMode.ToString().ToUpper() : null); }
public void Convert(string raw, SnmpAuthenticationMode expectedSnmpAuthenticationMode) { Assert.Equal(expectedSnmpAuthenticationMode, SnmpAuthenticationModeConverter.ToEnum(raw)); Assert.Equal(raw, SnmpAuthenticationModeConverter.FromEnum(SnmpAuthenticationModeConverter.ToEnum(raw))); }