public void Name_can_contain_valid_symbols() { InvalidDatabaseNameException.Validate("asdf_$()+-/"); }
public void Name_must_start_with_alphas() { Assert.Throws <InvalidDatabaseNameException>(() => InvalidDatabaseNameException.Validate("1234asdf")); }
public void Name_must_not_contain_invalid_symbols() { Assert.Throws <InvalidDatabaseNameException>(() => InvalidDatabaseNameException.Validate("asdf!@#$%^&*()")); }
public void Name_must_not_be_empty() { Assert.Throws <InvalidDatabaseNameException>(() => InvalidDatabaseNameException.Validate(string.Empty)); }
public void Name_must_not_be_null() { Assert.Throws <ArgumentNullException>(() => InvalidDatabaseNameException.Validate(null)); }
public void Name_must_not_contain_uppercase() { Assert.Throws <InvalidDatabaseNameException>(() => InvalidDatabaseNameException.Validate("asdfASDF")); }