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