2008-10-03 Ivan N. Zlatev <contact@i-nz.net>
[mono.git] / mcs / class / FirebirdSql.Data.Firebird / Test / FbParameterCollectionTest.cs
1 /*
2  *  Firebird ADO.NET Data provider for .NET and Mono 
3  * 
4  *     The contents of this file are subject to the Initial 
5  *     Developer's Public License Version 1.0 (the "License"); 
6  *     you may not use this file except in compliance with the 
7  *     License. You may obtain a copy of the License at 
8  *     http://www.firebirdsql.org/index.php?op=doc&id=idpl
9  *
10  *     Software distributed under the License is distributed on 
11  *     an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either 
12  *     express or implied.  See the License for the specific 
13  *     language governing rights and limitations under the License.
14  * 
15  *  Copyright (c) 2002, 2004 Carlos Guzman Alvarez
16  *  All Rights Reserved.
17  */
18
19 using NUnit.Framework;
20 using System;
21 using FirebirdSql.Data.Firebird;
22
23 namespace FirebirdSql.Data.Firebird.Tests
24 {
25         [TestFixture]
26         public class FbParameterCollectionTest : BaseTest 
27         {
28                 public FbParameterCollectionTest() : base()
29                 {               
30                 }
31                 
32                 [Test]
33                 public void AddTest()
34                 {
35                         FbCommand command = new FbCommand();
36                                                 
37                         command.Parameters.Add(new FbParameter("@p292", 10000));                        
38                         command.Parameters.Add("@p01", FbDbType.Integer);                       
39                         command.Parameters.Add("@p02", 289273);
40                         command.Parameters.Add("#p3", FbDbType.SmallInt, 2, "sourceColumn");
41                 }
42         }
43 }