Пример #1
0
 public static void TryFromOid_ValidInput(string oid, HashAlgorithmName expected)
 {
     Assert.True(HashAlgorithmName.TryFromOid(oid, out HashAlgorithmName actual));
     Assert.Equal(expected, actual);
 }
Пример #2
0
 public static void TryFromOid_ReturnsFalseForInvalidInput(string oidValue)
 {
     Assert.False(HashAlgorithmName.TryFromOid(oidValue, out _));
 }
Пример #3
0
 public static void TryFromOid_ThrowsForNullInput()
 {
     Assert.Throws <ArgumentNullException>(() => HashAlgorithmName.TryFromOid(null, out _));
 }