|
From: <sv...@de...> - 2005-06-24 23:25:13
|
Author: pcamacho Date: 2005-06-24 19:25:18 -0400 (Fri, 24 Jun 2005) New Revision: 1430 Added: humano2/trunk/components/tests/formulas.cs Log: ADD: first test for formulas with NUNIT. Added: humano2/trunk/components/tests/formulas.cs =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- humano2/trunk/components/tests/formulas.cs 2005-06-24 22:55:54 UTC (r= ev 1429) +++ humano2/trunk/components/tests/formulas.cs 2005-06-24 23:25:18 UTC (r= ev 1430) @@ -0,0 +1,43 @@ +// +// The Humano2 Business solution. +// Copyright (C) 2004,5 Humano2 Chile S.A. (http://www.humano2.com) +// +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. =20 +// +// $Id$ +// + +using System; +using System.Data; +using Humano2.Components.WebTools; +using Humano2.Components.Formulas; +using Humano2.Components.Formulas.Functions; +using NUnit.Framework; + +namespace Humano2.Components.Test.Formulas +{ + /// <summary> + /// Test class for Formulas component + /// !!!! This class has to be used with the template HelpDeskSMB (so= lutions/pgsql-09-HelpDeskSMB.sql) !!!!! + /// </summary> + [TestFixture] + public class Formulas + { + ////// + //First test the FunctionH2 class + // + [Test] + public void TestGetFormulas() + { + ProcessFormulas formula =3D new ProcessFormulas(); + =20 + DataTable dt =3D formula.GetFormulas(10160, 10181,10251); + string formulaStr =3D Convert.ToString(dt.Rows[0]["formula"]= ); + Assert.IsTrue(formulaStr =3D=3D "[10187^10179]");=20 + = =20 + } + } +} Property changes on: humano2/trunk/components/tests/formulas.cs ___________________________________________________________________ Name: svn:keywords + Id |