New test.
[mono.git] / mcs / class / FirebirdSql.Data.Firebird / Test / FbScriptTest.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 System;
20 using System.Data;
21 using System.Configuration;
22 using System.Collections.Specialized;
23
24 using FirebirdSql.Data.Firebird;
25 using FirebirdSql.Data.Firebird.Isql;
26 using NUnit.Framework;
27
28 namespace FirebirdSql.Data.Firebird.Tests
29 {
30         [TestFixture]
31         public class FbScriptTest : BaseTest 
32         {
33                 public FbScriptTest()
34                 {
35                 }
36
37                 [Test]
38                 public void IsqlScriptTest()
39                 {
40                         string fileName = ConfigurationSettings.AppSettings["IsqlScript"];
41                         if (System.IO.File.Exists(fileName))
42                         {
43                                 FbScript isql = new FbScript(fileName);
44                                 foreach (string command in isql.Results)
45                                 {
46                                         Console.WriteLine(command);
47                                 }
48                         }
49                 }
50         }
51 }