public void WhenNotEqualTicksThenShouldNotMatchIsEqual() { var type = new DateTimeOffsetType(); var now = DateTimeOffset.Now; Assert.That(type.IsEqual(new DateTimeOffset(now.Ticks - 1, now.Offset), new DateTimeOffset(now.Ticks, now.Offset)), Is.False); }
public void WhenNotEqualTicksThenShouldNotMatchIsEqual() { var type = new DateTimeOffsetType(); var now = DateTimeOffset.Now; type.IsEqual(new DateTimeOffset(now.Ticks - 1, now.Offset), new DateTimeOffset(now.Ticks, now.Offset)).Should().Be.False(); }