You've already forked linux-packaging-mono
Imported Upstream version 4.8.0.309
Former-commit-id: 5f9c6ae75f295e057a7d2971f3a6df4656fa8850
This commit is contained in:
parent
ee1447783b
commit
94b2861243
@@ -39,21 +39,33 @@ namespace MonoTests.System.Data.SqlClient {
|
||||
private const string testFailParamNameMessage = "We have to provide the same parameter name as in original .NET";
|
||||
|
||||
[Test] // .ctor(SqlConnection connection)
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#else
|
||||
[ExpectedException (typeof(ArgumentNullException))]
|
||||
#endif
|
||||
public void ConstructorNotNull1 ()
|
||||
{
|
||||
new SqlBulkCopy ((SqlConnection)null);
|
||||
}
|
||||
|
||||
[Test] // .ctor(string connectionString)
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#else
|
||||
[ExpectedException (typeof(ArgumentNullException))]
|
||||
#endif
|
||||
public void ConstructorNotNull2 ()
|
||||
{
|
||||
new SqlBulkCopy ((string)null);
|
||||
}
|
||||
|
||||
[Test] // .ctor(SqlConnection connection)
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#else
|
||||
[ExpectedException (typeof(ArgumentNullException))]
|
||||
#endif
|
||||
public void ConstructorNotNull3 ()
|
||||
{
|
||||
try {
|
||||
@@ -65,7 +77,11 @@ namespace MonoTests.System.Data.SqlClient {
|
||||
}
|
||||
|
||||
[Test] // .ctor(string connectionString)
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#else
|
||||
[ExpectedException (typeof(ArgumentNullException))]
|
||||
#endif
|
||||
public void ConstructorNotNull4 ()
|
||||
{
|
||||
try {
|
||||
@@ -77,7 +93,11 @@ namespace MonoTests.System.Data.SqlClient {
|
||||
}
|
||||
|
||||
[Test] // .ctor(string connectionString)
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#else
|
||||
[ExpectedException (typeof(ArgumentNullException))]
|
||||
#endif
|
||||
public void ConstructorNotNull5 ()
|
||||
{
|
||||
try {
|
||||
@@ -89,7 +109,11 @@ namespace MonoTests.System.Data.SqlClient {
|
||||
}
|
||||
|
||||
[Test] // .ctor(string connectionString)
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#else
|
||||
[ExpectedException (typeof(ArgumentNullException))]
|
||||
#endif
|
||||
public void ConstructorNotNull6 ()
|
||||
{
|
||||
try {
|
||||
|
||||
@@ -38,6 +38,9 @@ namespace MonoTests.System.Data.Odbc
|
||||
public class SqlCommandBuilderTest
|
||||
{
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void CatalogLocationTest ()
|
||||
{
|
||||
SqlCommandBuilder cb = new SqlCommandBuilder ();
|
||||
@@ -47,6 +50,9 @@ namespace MonoTests.System.Data.Odbc
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void CatalogLocation_Value_Invalid ()
|
||||
{
|
||||
SqlCommandBuilder cb = new SqlCommandBuilder ();
|
||||
@@ -82,6 +88,9 @@ namespace MonoTests.System.Data.Odbc
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void CatalogSeparator ()
|
||||
{
|
||||
SqlCommandBuilder cb = new SqlCommandBuilder ();
|
||||
@@ -89,6 +98,9 @@ namespace MonoTests.System.Data.Odbc
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void CatalogSeparator_Value_Invalid ()
|
||||
{
|
||||
string [] separators = new string [] {
|
||||
@@ -118,6 +130,9 @@ namespace MonoTests.System.Data.Odbc
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ConflictOptionTest ()
|
||||
{
|
||||
SqlCommandBuilder cb = new SqlCommandBuilder ();
|
||||
@@ -127,6 +142,9 @@ namespace MonoTests.System.Data.Odbc
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ConflictOption_Value_Invalid ()
|
||||
{
|
||||
SqlCommandBuilder cb = new SqlCommandBuilder ();
|
||||
@@ -147,6 +165,9 @@ namespace MonoTests.System.Data.Odbc
|
||||
}
|
||||
|
||||
[Test] // QuoteIdentifier (String)
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void QuoteIdentifier ()
|
||||
{
|
||||
SqlCommandBuilder cb;
|
||||
@@ -173,6 +194,9 @@ namespace MonoTests.System.Data.Odbc
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void QuoteIdentifier_PrefixSuffix_NoMatch ()
|
||||
{
|
||||
SqlCommandBuilder cb;
|
||||
@@ -211,6 +235,9 @@ namespace MonoTests.System.Data.Odbc
|
||||
}
|
||||
|
||||
[Test] // QuoteIdentifier (String)
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void QuoteIdentifier_UnquotedIdentifier_Null ()
|
||||
{
|
||||
SqlCommandBuilder cb = new SqlCommandBuilder ();
|
||||
@@ -226,6 +253,9 @@ namespace MonoTests.System.Data.Odbc
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void QuotePrefix ()
|
||||
{
|
||||
SqlCommandBuilder cb = new SqlCommandBuilder ();
|
||||
@@ -240,6 +270,9 @@ namespace MonoTests.System.Data.Odbc
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void QuotePrefix_Value_Invalid ()
|
||||
{
|
||||
string [] prefixes = new string [] {
|
||||
@@ -268,6 +301,9 @@ namespace MonoTests.System.Data.Odbc
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void QuoteSuffix ()
|
||||
{
|
||||
SqlCommandBuilder cb = new SqlCommandBuilder ();
|
||||
@@ -282,6 +318,9 @@ namespace MonoTests.System.Data.Odbc
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void QuoteSuffix_Value_Invalid ()
|
||||
{
|
||||
string [] suffixes = new string [] {
|
||||
@@ -310,6 +349,9 @@ namespace MonoTests.System.Data.Odbc
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void SchemaSeparator ()
|
||||
{
|
||||
SqlCommandBuilder cb = new SqlCommandBuilder ();
|
||||
@@ -319,6 +361,9 @@ namespace MonoTests.System.Data.Odbc
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void SchemaSeparator_Value_Invalid ()
|
||||
{
|
||||
string [] separators = new string [] {
|
||||
|
||||
@@ -42,6 +42,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
const string COMMAND_TEXT = "SELECT * FROM Authors";
|
||||
|
||||
[Test] // SqlCommand ()
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void Constructor1 ()
|
||||
{
|
||||
SqlCommand cmd = new SqlCommand ();
|
||||
@@ -61,6 +64,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test] // SqlCommand (string)
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void Constructor2 ()
|
||||
{
|
||||
SqlCommand cmd = new SqlCommand (COMMAND_TEXT);
|
||||
@@ -95,6 +101,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test] // SqlCommand (string, SqlConnection)
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void Constructor3 ()
|
||||
{
|
||||
SqlConnection conn = new SqlConnection ();
|
||||
@@ -147,6 +156,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test] // SqlCommand (string, SqlConnection, SqlTransaction)
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void Constructor4 ()
|
||||
{
|
||||
SqlConnection conn = new SqlConnection ();
|
||||
@@ -199,6 +211,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void Clone ()
|
||||
{
|
||||
SqlNotificationRequest notificationReq = new SqlNotificationRequest ();
|
||||
@@ -237,6 +252,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void CommandText ()
|
||||
{
|
||||
SqlCommand cmd = new SqlCommand ();
|
||||
@@ -251,6 +269,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void CommandTimeout ()
|
||||
{
|
||||
SqlCommand cmd = new SqlCommand ();
|
||||
@@ -263,6 +284,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void CommandTimeout_Value_Negative ()
|
||||
{
|
||||
SqlCommand cmd = new SqlCommand ();
|
||||
@@ -279,6 +303,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void CommandType_Value_Invalid ()
|
||||
{
|
||||
SqlCommand cmd = new SqlCommand ();
|
||||
@@ -296,6 +323,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test] // bug #324386
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void Dispose ()
|
||||
{
|
||||
string connectionString = "Initial Catalog=a;Server=b;User ID=c;"
|
||||
@@ -307,6 +337,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ExecuteNonQuery_Connection_Closed ()
|
||||
{
|
||||
string connectionString = "Initial Catalog=a;Server=b;User ID=c;"
|
||||
@@ -329,6 +362,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ExecuteNonQuery_Connection_Null ()
|
||||
{
|
||||
SqlCommand cmd = new SqlCommand ("delete from whatever");
|
||||
@@ -346,6 +382,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ExecuteReader_Connection_Closed ()
|
||||
{
|
||||
string connectionString = "Initial Catalog=a;Server=b;User ID=c;"
|
||||
@@ -368,6 +407,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ExecuteReader_Connection_Null ()
|
||||
{
|
||||
SqlCommand cmd = new SqlCommand ("select * from whatever");
|
||||
@@ -385,6 +427,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ExecuteScalar_Connection_Closed ()
|
||||
{
|
||||
string connectionString = "Initial Catalog=a;Server=b;User ID=c;"
|
||||
@@ -407,6 +452,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test] // bug #412584
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ExecuteScalar_Connection_Null ()
|
||||
{
|
||||
SqlCommand cmd = new SqlCommand ("select count(*) from whatever");
|
||||
@@ -425,6 +473,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
|
||||
// FIXME: this actually doesn't match .NET behavior. It shouldn't throw NRE.
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void Prepare_Connection_Null ()
|
||||
{
|
||||
SqlCommand cmd;
|
||||
@@ -477,6 +528,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test] // bug #412586
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void Prepare_Connection_Closed ()
|
||||
{
|
||||
string connectionString = "Initial Catalog=a;Server=b;User ID=c;"
|
||||
@@ -527,6 +581,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ResetCommandTimeout ()
|
||||
{
|
||||
SqlCommand cmd = new SqlCommand ();
|
||||
@@ -537,6 +594,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void UpdatedRowSource ()
|
||||
{
|
||||
SqlCommand cmd = new SqlCommand ();
|
||||
@@ -547,6 +607,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void UpdatedRowSource_Value_Invalid ()
|
||||
{
|
||||
SqlCommand cmd = new SqlCommand ();
|
||||
@@ -565,6 +628,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
|
||||
|
||||
[Test] // bug #381100
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ParameterCollectionTest ()
|
||||
{
|
||||
SqlCommand cmd = new SqlCommand();
|
||||
|
||||
@@ -39,6 +39,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
public class SqlConnectionTest
|
||||
{
|
||||
[Test] // SqlConnection ()
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void Constructor1 ()
|
||||
{
|
||||
SqlConnection cn = new SqlConnection ();
|
||||
@@ -57,6 +60,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test] // SqlConnection (string)
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void Constructor2 ()
|
||||
{
|
||||
string connectionString = "server=SQLSRV; database=Mono;";
|
||||
@@ -89,6 +95,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void Constructor2_ConnectionString_Invalid ()
|
||||
{
|
||||
try {
|
||||
@@ -181,6 +190,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void BeginTransaction_Connection_Closed ()
|
||||
{
|
||||
SqlConnection cn = new SqlConnection ();
|
||||
@@ -247,6 +259,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ChangeDatabase_Connection_Closed ()
|
||||
{
|
||||
SqlConnection cn = new SqlConnection ();
|
||||
@@ -264,6 +279,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ChangePassword_ConnectionString_Empty ()
|
||||
{
|
||||
try {
|
||||
@@ -279,6 +297,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ChangePassword_ConnectionString_Null ()
|
||||
{
|
||||
try {
|
||||
@@ -293,7 +314,10 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ChangePassword_NewPassword_Empty ()
|
||||
{
|
||||
try {
|
||||
@@ -309,6 +333,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ChangePassword_NewPassword_ExceedMaxLength ()
|
||||
{
|
||||
try {
|
||||
@@ -328,6 +355,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ChangePassword_NewPassword_Null ()
|
||||
{
|
||||
try {
|
||||
@@ -343,6 +373,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ClearPool_Connection_Null ()
|
||||
{
|
||||
try {
|
||||
@@ -357,6 +390,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ConnectionString ()
|
||||
{
|
||||
SqlConnection cn = new SqlConnection ();
|
||||
@@ -371,6 +407,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ConnectionString_Value_Invalid ()
|
||||
{
|
||||
SqlConnection cn = new SqlConnection ();
|
||||
@@ -403,6 +442,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void CreateCommand ()
|
||||
{
|
||||
SqlConnection cn = new SqlConnection ();
|
||||
@@ -424,6 +466,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void Dispose ()
|
||||
{
|
||||
SqlConnection cn = new SqlConnection ("Server=SQLSRV;Database=master;Timeout=25;Packet Size=512;Workstation ID=DUMMY");
|
||||
@@ -443,6 +488,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void GetSchema_Connection_Closed ()
|
||||
{
|
||||
SqlConnection cn = new SqlConnection ();
|
||||
@@ -519,6 +567,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ConnectionString_AsynchronousProcessing ()
|
||||
{
|
||||
SqlConnection cn = new SqlConnection ();
|
||||
@@ -527,6 +578,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ConnectionString_ConnectTimeout ()
|
||||
{
|
||||
SqlConnection cn = new SqlConnection ();
|
||||
@@ -543,6 +597,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ConnectionString_ConnectTimeout_Invalid ()
|
||||
{
|
||||
SqlConnection cn = new SqlConnection ();
|
||||
@@ -600,6 +657,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ConnectionString_Database_Synonyms ()
|
||||
{
|
||||
SqlConnection cn = null;
|
||||
@@ -614,6 +674,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ConnectionString_DataSource_Synonyms ()
|
||||
{
|
||||
SqlConnection cn = null;
|
||||
@@ -640,6 +703,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ConnectionString_MaxPoolSize ()
|
||||
{
|
||||
SqlConnection cn = new SqlConnection ();
|
||||
@@ -649,6 +715,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ConnectionString_MaxPoolSize_Invalid ()
|
||||
{
|
||||
SqlConnection cn = new SqlConnection ();
|
||||
@@ -733,6 +802,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ConnectionString_MinPoolSize ()
|
||||
{
|
||||
SqlConnection cn = new SqlConnection ();
|
||||
@@ -742,6 +814,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ConnectionString_MinPoolSize_Invalid ()
|
||||
{
|
||||
SqlConnection cn = new SqlConnection ();
|
||||
@@ -799,6 +874,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ConnectionString_MultipleActiveResultSets ()
|
||||
{
|
||||
SqlConnection cn = new SqlConnection ();
|
||||
@@ -806,6 +884,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ConnectionString_MultipleActiveResultSets_Invalid ()
|
||||
{
|
||||
SqlConnection cn = new SqlConnection ();
|
||||
@@ -823,6 +904,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ConnectionString_NetworkLibrary_Synonyms ()
|
||||
{
|
||||
SqlConnection cn = new SqlConnection ();
|
||||
@@ -832,6 +916,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ConnectionString_PacketSize ()
|
||||
{
|
||||
SqlConnection cn = new SqlConnection ();
|
||||
@@ -848,6 +935,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ConnectionString_PacketSize_Invalid ()
|
||||
{
|
||||
SqlConnection cn = new SqlConnection ();
|
||||
@@ -901,6 +991,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ConnectionString_Password_Synonyms ()
|
||||
{
|
||||
SqlConnection cn = new SqlConnection ();
|
||||
@@ -909,6 +1002,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ConnectionString_PersistSecurityInfo_Synonyms ()
|
||||
{
|
||||
SqlConnection cn = new SqlConnection ();
|
||||
@@ -917,6 +1013,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ConnectionString_UserID_Synonyms ()
|
||||
{
|
||||
SqlConnection cn = new SqlConnection ();
|
||||
@@ -926,6 +1025,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ConnectionString_UserInstance ()
|
||||
{
|
||||
SqlConnection cn = new SqlConnection ();
|
||||
@@ -933,6 +1035,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ConnectionString_UserInstance_Invalid ()
|
||||
{
|
||||
SqlConnection cn = new SqlConnection ();
|
||||
@@ -950,6 +1055,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ConnectionString_OtherKeywords ()
|
||||
{
|
||||
SqlConnection cn = new SqlConnection ();
|
||||
@@ -973,6 +1081,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void Open_ConnectionString_Empty ()
|
||||
{
|
||||
SqlConnection cn = new SqlConnection ();
|
||||
@@ -991,6 +1102,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void Open_ConnectionString_Null ()
|
||||
{
|
||||
SqlConnection cn = new SqlConnection ();
|
||||
@@ -1009,6 +1123,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void Open_ConnectionString_Whitespace ()
|
||||
{
|
||||
SqlConnection cn = new SqlConnection ();
|
||||
@@ -1027,6 +1144,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ServerVersion_Connection_Closed ()
|
||||
{
|
||||
SqlConnection cn = new SqlConnection ();
|
||||
@@ -1051,3 +1171,4 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -63,6 +63,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test] // SqlDataAdapter (SqlCommand)
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void Constructor2 ()
|
||||
{
|
||||
SqlCommand cmd = new SqlCommand ();
|
||||
@@ -109,6 +112,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test] // SqlDataAdapter (string, SqlConnection)
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void Constructor3 ()
|
||||
{
|
||||
string selectCommandText = "SELECT * FROM Authors";
|
||||
@@ -137,6 +143,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test] // SqlDataAdapter (string, SqlConnection)
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void Constructor3_SelectCommandText_Null ()
|
||||
{
|
||||
SqlConnection selectConnection = new SqlConnection ();
|
||||
@@ -165,6 +174,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test] // SqlDataAdapter (string, SqlConnection)
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void Constructor3_SelectConnection_Null ()
|
||||
{
|
||||
string selectCommandText = "SELECT * FROM Authors";
|
||||
@@ -192,6 +204,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test] // SqlDataAdapter (string, string)]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void Constructor4 ()
|
||||
{
|
||||
string selectCommandText = "SELECT * FROM Authors";
|
||||
@@ -221,6 +236,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test] // SqlDataAdapter (string, string)]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void Constructor4_SelectCommandText_Null ()
|
||||
{
|
||||
string selectConnectionString = "server=SQLSRV;database=Mono";
|
||||
@@ -250,6 +268,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test] // SqlDataAdapter (string, string)]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void Constructor4_SelectConnectionString_Null ()
|
||||
{
|
||||
string selectCommandText = "SELECT * FROM Authors";
|
||||
@@ -278,6 +299,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void DeleteCommand ()
|
||||
{
|
||||
SqlDataAdapter da = new SqlDataAdapter ();
|
||||
@@ -293,6 +317,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void Dispose ()
|
||||
{
|
||||
SqlDataAdapter da = new SqlDataAdapter ();
|
||||
@@ -311,6 +338,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void InsertCommand ()
|
||||
{
|
||||
SqlDataAdapter da = new SqlDataAdapter ();
|
||||
@@ -326,6 +356,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void SelectCommand ()
|
||||
{
|
||||
SqlDataAdapter da = new SqlDataAdapter ();
|
||||
@@ -369,6 +402,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void UpdateCommand ()
|
||||
{
|
||||
SqlDataAdapter da = new SqlDataAdapter ();
|
||||
|
||||
@@ -45,6 +45,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
public class SqlParameterTest
|
||||
{
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void Constructor1 ()
|
||||
{
|
||||
SqlParameter p = new SqlParameter ();
|
||||
@@ -68,6 +71,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void Constructor2_Value_DateTime ()
|
||||
{
|
||||
DateTime value = new DateTime (2004, 8, 24);
|
||||
@@ -94,6 +100,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void Constructor2_Value_DBNull ()
|
||||
{
|
||||
SqlParameter p = new SqlParameter ("address", DBNull.Value);
|
||||
@@ -118,6 +127,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void Constructor2_Value_Null ()
|
||||
{
|
||||
SqlParameter p = new SqlParameter ("address", (Object) null);
|
||||
@@ -141,6 +153,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test] // .ctor (String, SqlDbType, Int32, ParameterDirection, Byte, Byte, String, DataRowVersion, Boolean, Object, String, String, String)
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void Constructor7 ()
|
||||
{
|
||||
SqlParameter p1 = new SqlParameter ("p1Name", SqlDbType.VarChar, 20,
|
||||
@@ -167,6 +182,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void CompareInfo ()
|
||||
{
|
||||
SqlParameter parameter = new SqlParameter ();
|
||||
@@ -176,6 +194,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void InferType_Byte ()
|
||||
{
|
||||
Byte value = 0x0a;
|
||||
@@ -187,6 +208,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void InferType_ByteArray ()
|
||||
{
|
||||
Byte [] value = new Byte [] { 0x0a, 0x0d };
|
||||
@@ -289,6 +313,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void InferType_DateTime ()
|
||||
{
|
||||
DateTime value;
|
||||
@@ -314,6 +341,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void InferType_Decimal ()
|
||||
{
|
||||
Decimal value;
|
||||
@@ -339,6 +369,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void InferType_Double ()
|
||||
{
|
||||
Double value;
|
||||
@@ -364,6 +397,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void InferType_Enum ()
|
||||
{
|
||||
SqlParameter param;
|
||||
@@ -380,6 +416,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void InferType_Guid ()
|
||||
{
|
||||
Guid value = Guid.NewGuid ();
|
||||
@@ -391,6 +430,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void InferType_Int16 ()
|
||||
{
|
||||
Int16 value;
|
||||
@@ -416,6 +458,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void InferType_Int32 ()
|
||||
{
|
||||
Int32 value;
|
||||
@@ -441,6 +486,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void InferType_Int64 ()
|
||||
{
|
||||
Int64 value;
|
||||
@@ -506,6 +554,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void InferType_Object ()
|
||||
{
|
||||
Object value = new Object ();
|
||||
@@ -517,6 +568,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void InferType_Single ()
|
||||
{
|
||||
Single value = Single.MaxValue;
|
||||
@@ -528,6 +582,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void InferType_String ()
|
||||
{
|
||||
String value = "some text";
|
||||
@@ -551,6 +608,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void LocaleId ()
|
||||
{
|
||||
SqlParameter parameter = new SqlParameter ();
|
||||
@@ -560,6 +620,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test] // bug #320196
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ParameterNullTest ()
|
||||
{
|
||||
SqlParameter param = new SqlParameter ("param", SqlDbType.Decimal);
|
||||
@@ -574,6 +637,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ParameterType ()
|
||||
{
|
||||
SqlParameter p;
|
||||
@@ -632,6 +698,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void InferType_Boolean ()
|
||||
{
|
||||
Boolean value;
|
||||
@@ -651,6 +720,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ParameterName ()
|
||||
{
|
||||
SqlParameter p = new SqlParameter ();
|
||||
@@ -676,6 +748,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ResetDbType ()
|
||||
{
|
||||
SqlParameter p;
|
||||
@@ -739,6 +814,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void ResetSqlDbType ()
|
||||
{
|
||||
//Parameter with an assigned value but no SqlDbType specified
|
||||
@@ -779,6 +857,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void SourceColumn ()
|
||||
{
|
||||
SqlParameter p = new SqlParameter ();
|
||||
@@ -804,6 +885,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void SourceColumnNullMapping ()
|
||||
{
|
||||
SqlParameter p = new SqlParameter ();
|
||||
@@ -815,6 +899,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void SqlDbTypeTest ()
|
||||
{
|
||||
SqlParameter p = new SqlParameter ("zipcode", 3510);
|
||||
@@ -829,6 +916,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void SqlDbTypeTest_Value_Invalid ()
|
||||
{
|
||||
SqlParameter p = new SqlParameter ("zipcode", 3510);
|
||||
@@ -847,6 +937,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void SqlValue ()
|
||||
{
|
||||
SqlParameter parameter = new SqlParameter ();
|
||||
@@ -970,6 +1063,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void SqlTypes_SqlBinary ()
|
||||
{
|
||||
SqlParameter parameter;
|
||||
@@ -995,6 +1091,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void SqlTypes_SqlBoolean ()
|
||||
{
|
||||
SqlParameter parameter;
|
||||
@@ -1020,6 +1119,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void SqlTypes_SqlByte ()
|
||||
{
|
||||
SqlParameter parameter;
|
||||
@@ -1107,6 +1209,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void SqlTypes_SqlDateTime ()
|
||||
{
|
||||
SqlParameter parameter;
|
||||
@@ -1132,6 +1237,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void SqlTypes_SqlDecimal ()
|
||||
{
|
||||
SqlParameter parameter;
|
||||
@@ -1157,6 +1265,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void SqlTypes_SqlDouble ()
|
||||
{
|
||||
SqlParameter parameter;
|
||||
@@ -1182,6 +1293,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void SqlTypes_SqlGuid ()
|
||||
{
|
||||
SqlParameter parameter;
|
||||
@@ -1207,6 +1321,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void SqlTypes_SqlInt16 ()
|
||||
{
|
||||
SqlParameter parameter;
|
||||
@@ -1232,6 +1349,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void SqlTypes_SqlInt32 ()
|
||||
{
|
||||
SqlParameter parameter;
|
||||
@@ -1257,6 +1377,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void SqlTypes_SqlInt64 ()
|
||||
{
|
||||
SqlParameter parameter;
|
||||
@@ -1282,6 +1405,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void SqlTypes_SqlMoney ()
|
||||
{
|
||||
SqlParameter parameter;
|
||||
@@ -1307,6 +1433,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void SqlTypes_SqlSingle ()
|
||||
{
|
||||
SqlParameter parameter;
|
||||
@@ -1332,6 +1461,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void SqlTypes_SqlString ()
|
||||
{
|
||||
SqlParameter parameter;
|
||||
@@ -1357,6 +1489,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void SqlTypes_SqlXml ()
|
||||
{
|
||||
SqlParameter parameter;
|
||||
@@ -1386,6 +1521,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void Value ()
|
||||
{
|
||||
SqlParameter p;
|
||||
@@ -1429,6 +1567,9 @@ namespace MonoTests.System.Data.SqlClient
|
||||
}
|
||||
|
||||
[Test]
|
||||
#if FEATURE_NO_BSD_SOCKETS
|
||||
[ExpectedException (typeof (PlatformNotSupportedException))]
|
||||
#endif
|
||||
public void XmlSchemaTest ()
|
||||
{
|
||||
SqlParameter p1 = new SqlParameter ();
|
||||
|
||||
Reference in New Issue
Block a user