public void HashingAlgorithm_Bad_Alias()
 {
     Assert.Throws <ArgumentNullException>(() => HashingAlgorithm.RegisterAlias(null, "sha1"));
     Assert.Throws <ArgumentNullException>(() => HashingAlgorithm.RegisterAlias("", "sha1"));
     Assert.Throws <ArgumentNullException>(() => HashingAlgorithm.RegisterAlias("   ", "sha1"));
 }
 public void HashingAlgorithm_Alias_Target_Does_Not_Exist()
 {
     Assert.Throws <ArgumentException>(() => HashingAlgorithm.RegisterAlias("foo", "sha1-x"));
 }
 public void HashingAlgorithm_Alias_Target_Is_Bad()
 {
     Assert.Throws <ArgumentNullException>(() => HashingAlgorithm.RegisterAlias("foo", "  "));
 }
 public void HashingAlgorithm_Alias_Already_Exists()
 {
     Assert.Throws <ArgumentException>(() => HashingAlgorithm.RegisterAlias("id", "identity"));
 }