public void HashingAlgorithm_Number_Already_Exists() { ExceptionAssert.Throws <ArgumentException>(() => HashingAlgorithm.Register("sha1-x", 0x11, 1)); }
public void HashingAlgorithm_Bad_Name() { ExceptionAssert.Throws <ArgumentNullException>(() => HashingAlgorithm.Register(null, 1, 1)); ExceptionAssert.Throws <ArgumentNullException>(() => HashingAlgorithm.Register("", 1, 1)); ExceptionAssert.Throws <ArgumentNullException>(() => HashingAlgorithm.Register(" ", 1, 1)); }