Assert.AreEqual (a.ToString (), a.TypeId.ToString (), "TypeId");
Assert.IsFalse (a.Unrestricted, "Unrestricted");
Assert.IsFalse (a.AllowBlankPassword, "AllowBlankPassword");
-#if NET_2_0
Assert.AreEqual (String.Empty, a.ConnectionString, "ConnectionString");
Assert.AreEqual (KeyRestrictionBehavior.AllowOnly, a.KeyRestrictionBehavior, "KeyRestrictionBehavior");
Assert.AreEqual (String.Empty, a.KeyRestrictions, "KeyRestrictions");
Assert.IsFalse (a.ShouldSerializeConnectionString (), "ShouldSerializeConnectionString");
Assert.IsFalse (a.ShouldSerializeKeyRestrictions (), "ShouldSerializeConnectionString");
-#endif
OraclePermission ocp = (OraclePermission)a.CreatePermission ();
Assert.IsFalse (ocp.IsUnrestricted (), "IsUnrestricted");
}
OraclePermission ocp = (OraclePermission)a.CreatePermission ();
Assert.IsTrue (ocp.IsUnrestricted (), "IsUnrestricted");
Assert.IsFalse (a.AllowBlankPassword, "AllowBlankPassword");
-#if NET_2_0
Assert.AreEqual (String.Empty, a.ConnectionString, "ConnectionString");
Assert.AreEqual (KeyRestrictionBehavior.AllowOnly, a.KeyRestrictionBehavior, "KeyRestrictionBehavior");
Assert.AreEqual (String.Empty, a.KeyRestrictions, "KeyRestrictions");
-#endif
a.Unrestricted = false;
ocp = (OraclePermission)a.CreatePermission ();
Assert.IsFalse (ocp.IsUnrestricted (), "!IsUnrestricted");
Assert.IsFalse (a.AllowBlankPassword, "False");
}
-#if NET_2_0
[Test]
public void ConnectionString ()
{
a.KeyRestrictions = null;
Assert.AreEqual (String.Empty, a.KeyRestrictions, "Empty(null)");
}
-#endif
[Test]
public void Attributes ()
{