public void PassesZonedDateTimeCorrectly(bool isExtended) { if (isExtended) { SetExtended(); } var value = new FbZonedDateTime(new DateTime(2020, 08, 27, 08, 00, 00, DateTimeKind.Utc), "Europe/Prague"); using (var cmd = Connection.CreateCommand()) { cmd.CommandText = "select cast(@value as timestamp with time zone) from rdb$database"; cmd.Parameters.AddWithValue("value", value); var result = (FbZonedDateTime)cmd.ExecuteScalar(); Assert.AreEqual(value, result); } }
public void EqualityFalse(FbZonedDateTime expected, FbZonedDateTime actual) { Assert.AreNotEqual(expected, actual); }
public void EqualityTrue(FbZonedDateTime expected, FbZonedDateTime actual) { Assert.AreEqual(expected, actual); }