public void should_equal_to_another_instance_of_time_to_live_which_valid_for_the_same_period_of_time() { timeToLive.Should().Be(TimeToLive.CreateValidFor(validFor)); timeToLive.Should().NotBe(TimeToLive.CreateValidFor(validFor.Add(TimeSpan.FromMinutes(1)))); }
public void should_equal_to_another_never_expiring_instance_of_time_to_live() { timeToLive.Should().Be(TimeToLive.CreateNeverExpiring()); }
public void should_equal_to_another_instance_of_time_to_live_which_expires_at_the_same_moment() { timeToLive.Should().Be(TimeToLive.CreateExpiringAt(expiringAt)); timeToLive.Should().NotBe(TimeToLive.CreateExpiringAt(expiringAt.AddDays(1))); }