/* $Id: AnaylzerTest.cs,v 1.2 2004/11/24 13:57:06 larsbm Exp $
* Copyright (c) 2004 Engine EAR GmbH & Co. KG
* Developed by: Lars Behrmann, lb@engine.de
*/
using System;
using System.Data;
using SQLToNeo.Model;
using NUnit.Framework;
using SQLToNeo.PlugIn;
namespace SQLToNeo.Tests{
[TestFixture]
public class AnaylzerTest
{
[Test]
public void AnalyzeTest()
{
string s = "Test";
Anaylzer a = new Anaylzer((IAnalyzer)Activator.CreateInstance(typeof(MSSQLAnalyzer)));
Assert.IsNull(a.Instance.Catalog, "Should be null");
a.Instance.Catalog = s;
Assert.AreEqual(s, a.Instance.Catalog, "Catalog: Must be word Test");
Assert.IsNull(a.Instance.IAnalyzerName, "Should be null");
a.Instance.IAnalyzerName = s;
Assert.AreEqual(s, a.Instance.IAnalyzerName, "IAnaylzerName: Must be word Test");
Assert.IsNull(a.Instance.Password, "Should be null");
a.Instance.Password = s;
Assert.AreEqual(s, a.Instance.Password, "Password: Must be word Test");
Assert.IsNull(a.Instance.User, "Should be null");
a.Instance.User = s;
Assert.AreEqual(s, a.Instance.User, "User: Must be word Test");
Assert.IsNull(a.Instance.Server, "Should be null");
a.Instance.Server = s;
Assert.AreEqual(s, a.Instance.Server, "Server: Must be word Test");
a.Instance.NTAuthentication = true;
Assert.IsTrue(a.Instance.NTAuthentication, "NT-Authent: Must be true!");
Assert.IsNotNull(a.Instance.AnalyzeAndFill(new DataSet()), "Must return instance of a DataSet Object");
}
}
}
/*
* $Log: AnaylzerTest.cs,v $
* Revision 1.2 2004/11/24 13:57:06 larsbm
* - new project SQLToNeoPlugIn
* - switched interfaces from mainsource into plug in
*
* Revision 1.1 2004/10/13 08:53:55 larsbm
* - Start to implement new anaylzer via bridge pattern
* - Adding a test for the new analyzer
*
*
*/
|