Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

35 lines
875 B
C#

using System;
using System.Data;
using NUnit.Framework;
namespace Monotests_Mono.Data.SqlExpressions
{
[TestFixture]
public class DateComparisonTest
{
private DataSet dataSet;
[SetUp]
public void SetUp()
{
dataSet = new DataSet();
dataSet.ReadXml("Test/Mono.Data.SqlExpressions/dateComparisonTest.xml", XmlReadMode.InferSchema);
}
[Test]
public void TestDateComparisonRight()
{
DataView dataView = new DataView(dataSet.Tables["thing"], "#2009-07-19 00:01:00# = start", "", DataViewRowState.CurrentRows);
Assert.AreEqual (1, dataView.Count);
}
[Test]
[Category ("NotWorking")]
public void TestDateComparisonLeft()
{
DataView dataView = new DataView(dataSet.Tables["thing"], "start = #2009-07-19 00:01:00#", "", DataViewRowState.CurrentRows);
Assert.AreEqual (1, dataView.Count);
}
}
}