This is a naming I used for playing with the abstraction of Date and Time in testing scenarios.
Actually, at the moment I’m writing this, I already have an even better naming. But that’s for another post.
[TestMethod]
public void AppSurgeCostCalculator_CorrectlyCalculatesSurgeSpans()
{
[...]
DateTime bigBang = new System.DateTime(2019, 2, 1, 10, 0, 0);
DateTime activatePaidSubscriptionAt = new System.DateTime(2019, 2, 1, 11, 30, 0);
using (TimeMachine(bigBang))
{
CreateTrialSubscription();
[...]
}
using (TimeMachine(activatePaidSubscriptionAt))
{
CreateAndValidateClientPaymentMethod();
[...]
}
//Assert expectations
[...]
}
P.S. I also enjoyed H.G.Wells’ book and movie a lot! It’s what I thought of when I came up with this naming.