forked from nhibernate/nhibernate-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDateFixture.cs
34 lines (30 loc) · 972 Bytes
/
DateFixture.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by AsyncGenerator.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Collections;
using NUnit.Framework;
namespace NHibernate.Test.NHSpecificTest.Dates
{
using System.Threading.Tasks;
[TestFixture]
public class DateFixtureAsync : FixtureBaseAsync
{
protected override string[] Mappings
{
get { return new[] {"NHSpecificTest.Dates.Mappings.Date.hbm.xml"}; }
}
[Test]
public async Task SavingAndRetrievingTestAsync()
{
DateTime Now = DateTime.Now;
await (SavingAndRetrievingActionAsync(new AllDates {Sql_date = Now},
entity => DateTimeAssert.AreEqual(entity.Sql_date, Now, true)));
}
}
}