You've already forked linux-packaging-mono
data
docs
eglib
external
ikvm-native
libgc
m4
man
mcs
build
class
Accessibility
Commons.Xml.Relaxng
Compat.ICSharpCode.SharpZipLib
Cscompmgd
CustomMarshalers
EntityFramework
EntityFramework.SqlServer
Facades
I18N
IBM.Data.DB2
ICSharpCode.SharpZipLib
Managed.Windows.Forms
Microsoft.Build
Microsoft.Build.Engine
Microsoft.Build.Framework
Microsoft.Build.Tasks
Microsoft.Build.Utilities
Microsoft.CSharp
Microsoft.VisualC
Microsoft.Web.Infrastructure
MicrosoftAjaxLibrary
Mono.C5
Mono.CSharp
Mono.Cairo
Mono.Cecil
Mono.Cecil.Mdb
Mono.CodeContracts
Mono.CompilerServices.SymbolWriter
Mono.Data.Sqlite
Mono.Data.Tds
Mono.Debugger.Soft
Mono.Dynamic.Interpreter
Mono.Http
Mono.Management
Mono.Messaging
Mono.Messaging.RabbitMQ
Mono.Options
Mono.Parallel
Mono.Posix
Mono.Security
Mono.Security.Win32
Mono.Simd
Mono.Tasklets
Mono.WebBrowser
Mono.XBuild.Tasks
Novell.Directory.Ldap
Npgsql
PEAPI
RabbitMQ.Client
System
System.ComponentModel.Composition
System.ComponentModel.Composition.4.5
System.ComponentModel.DataAnnotations
System.Configuration
System.Configuration.Install
System.Core
System.Data
System.Data.DataSetExtensions
System.Data.Linq
System.Data.OracleClient
Assembly
System.Data.OracleClient
System.Data.OracleClient.Oci
Test
System.Data.OracleClient
System.Data.OracleClient.Oci
System.Data.OracleClient.jvm
MonoTests.System.Data.Utils
OracleCommand
OracleCommandBuilder
OracleConnection
OracleDataAdapter
OracleDataReader
ChangeLog
OracleDataReader_Close.cs
OracleDataReader_Depth.cs
OracleDataReader_GetBoolean.cs
OracleDataReader_GetByte_I.cs
OracleDataReader_GetBytes_IIBII.cs
OracleDataReader_GetChars.cs
OracleDataReader_GetDataTypeName.cs
OracleDataReader_GetDateTime.cs
OracleDataReader_GetDecimal_I.cs
OracleDataReader_GetDouble_I.cs
OracleDataReader_GetFieldType.cs
OracleDataReader_GetFloat_I.cs
OracleDataReader_GetGuiid_I.cs
OracleDataReader_GetInt16.cs
OracleDataReader_GetInt32_I.cs
OracleDataReader_GetInt64.cs
OracleDataReader_GetName_I.cs
OracleDataReader_GetOrdinal.cs
OracleDataReader_GetSchemaTable.cs
OracleDataReader_GetString_I.cs
OracleDataReader_GetTimeSpan_I.cs
OracleDataReader_GetValue.cs
OracleDataReader_GetValues.cs
OracleDataReader_HasRows.cs
OracleDataReader_IsDBNull.cs
OracleDataReader_Item.cs
OracleDataReader_NextResult.cs
OracleDataReader_Read.cs
OracleDataReader_RecordsAffected.cs
OracleDataReader_ctor.cs
OracleParameter
OracleParameterCollection
OracleTransaction
OracleType
TestOracleClient.cs.REMOVED.git-id
refcursortest.cs
testblob.cs
testclob.cs
ChangeLog
Makefile
System.Data.OracleClient.dll.sources
System.Data.OracleClient_test.dll.sources
System.Data.Services
System.Data.Services.Client
System.Design
System.DirectoryServices
System.DirectoryServices.Protocols
System.Drawing
System.Drawing.Design
System.Dynamic
System.EnterpriseServices
System.IO.Compression
System.IO.Compression.FileSystem
System.IdentityModel
System.IdentityModel.Selectors
System.Json
System.Json.Microsoft
System.Management
System.Messaging
System.Net
System.Net.Http
System.Net.Http.Formatting
System.Net.Http.WebRequest
System.Numerics
System.Reactive.Core
System.Reactive.Debugger
System.Reactive.Experimental
System.Reactive.Interfaces
System.Reactive.Linq
System.Reactive.Observable.Aliases
System.Reactive.PlatformServices
System.Reactive.Providers
System.Reactive.Runtime.Remoting
System.Reactive.Windows.Forms
System.Reactive.Windows.Threading
System.Runtime.Caching
System.Runtime.DurableInstancing
System.Runtime.Remoting
System.Runtime.Serialization
System.Runtime.Serialization.Formatters.Soap
System.Security
System.ServiceModel
System.ServiceModel.Activation
System.ServiceModel.Discovery
System.ServiceModel.Routing
System.ServiceModel.Web
System.ServiceProcess
System.Threading.Tasks.Dataflow
System.Transactions
System.Web
System.Web.Abstractions
System.Web.ApplicationServices
System.Web.DynamicData
System.Web.Extensions
System.Web.Extensions.Design
System.Web.Extensions.Design_1.0
System.Web.Extensions_1.0
System.Web.Http
System.Web.Http.SelfHost
System.Web.Http.WebHost
System.Web.Mvc
System.Web.Mvc2
System.Web.Mvc3
System.Web.Razor
System.Web.Routing
System.Web.Services
System.Web.WebPages
System.Web.WebPages.Deployment
System.Web.WebPages.Razor
System.Windows
System.Windows.Forms.DataVisualization
System.XML
System.Xaml
System.Xml.Linq
System.Xml.Serialization
SystemWebTestShim
WebMatrix.Data
WindowsBase
aot-compiler
corlib
dlr
doc
lib
monodoc
notes
ChangeLog
LICENSE
Makefile
README
ecma.pub
mono.pub
mono.snk
msfinal.pub
reactive.pub
silverlight.pub
winfx.pub
winfx3.pub
docs
errors
ilasm
jay
mcs
nunit24
tests
tools
AUTHORS
COPYING
COPYING.LIB
ChangeLog
INSTALL.txt
LICENSE
LICENSE.GPL
LICENSE.LGPL
LICENSE.MPL
MIT.X11
Makefile
MonoIcon.png
README
ScalableMonoIcon.svg
mkinstalldirs
winexe.in
mono
msvc
po
runtime
samples
scripts
support
tools
AUTHORS
COPYING.LIB
ChangeLog.REMOVED.git-id
LICENSE
Makefile.am
Makefile.in
NEWS
README.md
acinclude.m4
aclocal.m4
autogen.sh
build-mingw32.sh
compile
config.guess
config.h.in
config.rpath
config.sub
configure.REMOVED.git-id
configure.ac.REMOVED.git-id
depcomp
install-sh
ltmain.sh.REMOVED.git-id
missing
mkinstalldirs
mono-core.spec
mono-core.spec.in
mono-uninstalled.pc.in
test-driver
winconfig.h
99 lines
2.6 KiB
C#
99 lines
2.6 KiB
C#
![]() |
//
|
||
|
// Copyright (c) 2006 Mainsoft Co.
|
||
|
//
|
||
|
// Permission is hereby granted, free of charge, to any person obtaining
|
||
|
// a copy of this software and associated documentation files (the
|
||
|
// "Software"), to deal in the Software without restriction, including
|
||
|
// without limitation the rights to use, copy, modify, merge, publish,
|
||
|
// distribute, sublicense, and/or sell copies of the Software, and to
|
||
|
// permit persons to whom the Software is furnished to do so, subject to
|
||
|
// the following conditions:
|
||
|
//
|
||
|
// The above copyright notice and this permission notice shall be
|
||
|
// included in all copies or substantial portions of the Software.
|
||
|
//
|
||
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||
|
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||
|
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||
|
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||
|
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||
|
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||
|
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||
|
//
|
||
|
|
||
|
|
||
|
using System;
|
||
|
using System.Data;
|
||
|
using System.Data.OracleClient;
|
||
|
|
||
|
using MonoTests.System.Data.Utils;
|
||
|
|
||
|
|
||
|
using NUnit.Framework;
|
||
|
|
||
|
namespace MonoTests.System.Data.OracleClient
|
||
|
{
|
||
|
[TestFixture]
|
||
|
public class OracleDataReader_Depth : GHTBase
|
||
|
{
|
||
|
public static void Main()
|
||
|
{
|
||
|
OracleDataReader_Depth tc = new OracleDataReader_Depth();
|
||
|
Exception exp = null;
|
||
|
try
|
||
|
{
|
||
|
tc.BeginTest("OracleDataReader_Depth");
|
||
|
tc.run();
|
||
|
}
|
||
|
catch(Exception ex){exp = ex;}
|
||
|
finally {tc.EndTest(exp);}
|
||
|
}
|
||
|
|
||
|
[Test]
|
||
|
public void run()
|
||
|
{
|
||
|
Exception exp = null;
|
||
|
|
||
|
OracleConnection con = new OracleConnection(MonoTests.System.Data.Utils.ConnectedDataProvider.ConnectionString);
|
||
|
con.Open();
|
||
|
OracleCommand cmd = new OracleCommand("Select * From Customers", con);
|
||
|
OracleDataReader rdr = cmd.ExecuteReader();
|
||
|
|
||
|
try
|
||
|
{
|
||
|
BeginCase("Before execute");
|
||
|
Compare(rdr.Depth , 0);
|
||
|
}
|
||
|
catch(Exception ex){exp = ex;}
|
||
|
finally{EndCase(exp); exp = null;}
|
||
|
|
||
|
|
||
|
try
|
||
|
{
|
||
|
BeginCase("After execute");
|
||
|
rdr.Read();
|
||
|
Compare(rdr.Depth , 0);
|
||
|
}
|
||
|
catch(Exception ex){exp = ex;}
|
||
|
finally{EndCase(exp); exp = null;}
|
||
|
|
||
|
if (con.State == ConnectionState.Open) con.Close();
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
//public TestClass():base(true){}
|
||
|
|
||
|
//Activate this constructor to log Failures to a log file
|
||
|
//public TestClass(System.IO.TextWriter tw):base(tw, false){}
|
||
|
|
||
|
//Activate this constructor to log All to a log file
|
||
|
//public TestClass(System.IO.TextWriter tw):base(tw, true){}
|
||
|
|
||
|
//BY DEFAULT LOGGING IS DONE TO THE STANDARD OUTPUT ONLY FOR FAILURES
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
}
|