Skip to content

Commit f76b4c7

Browse files
committed
Remove TimeOnly/DateOnly reading from test
The test is not suppose to be about DateOnly/TimeOnly Such tests will be created where other types are checked
1 parent 5387951 commit f76b4c7

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

Orm/Xtensive.Orm.Tests/Storage/SchemaSharing/EntityManipulation/SimpleEntityManipulationTest.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
using NUnit.Framework;
1111
using Xtensive.Core;
1212
using Xtensive.Orm.Configuration;
13-
using Xtensive.Orm.Tests.Model.UselessTypeInTheMiddleTestModel;
1413
using model = Xtensive.Orm.Tests.Storage.SchemaSharing.EntityManipulation.Model;
1514

1615
namespace Xtensive.Orm.Tests.Storage.SchemaSharing.EntityManipulation
@@ -405,23 +404,11 @@ private void Update(Session session, Key[] createdKeys, int initialCountOfEntiti
405404
Assert.That(a.DatabaseName, Is.EqualTo(databaseAndSchema.First));
406405
Assert.That(a.SchemaName, Is.EqualTo(databaseAndSchema.Second));
407406

408-
var now = DateTime.UtcNow;
409-
410407
a.Text = updatedText;
411-
#if NET6_0_OR_GREATER //DO_DATEONLY
412-
var dateOnly = DateOnly.FromDateTime(now);
413-
var timeOnly = TimeOnly.FromDateTime(now);
414-
a.DateOnly = dateOnly;
415-
a.TimeOnly = timeOnly;
416-
#endif
417408
session.SaveChanges();
418409

419410
Assert.That(session.Query.All<model.Part1.TestEntity1>().Count(), Is.EqualTo(initialCountOfEntities + 1));
420411
Assert.That(session.Query.All<model.Part1.TestEntity1>().FirstOrDefault(e => e.Text == updatedText), Is.Not.Null);
421-
#if NET6_0_OR_GREATER //DO_DATEONLY
422-
Assert.AreEqual(session.Query.All<model.Part1.TestEntity1>().FirstOrDefault(e => e.Text == updatedText).DateOnly, dateOnly);
423-
Assert.AreEqual(session.Query.All<model.Part1.TestEntity1>().FirstOrDefault(e => e.Text == updatedText).TimeOnly, timeOnly);
424-
#endif
425412
Assert.That(session.Query.All<model.Part1.TestEntity1>().FirstOrDefault(e => e.Text == text), Is.Null);
426413
Assert.That(
427414
session.Query.All<model.Part1.TestEntity1>()

0 commit comments

Comments
 (0)