public void ImplicitCastOperator_Queued_HasDefaultPoison() { var action = DurableJobQueueAction.Queued(fixture.CreateAnonymous <TQueue>()); var cast = (DurableJobQueueAction <TQueue, TQueuePoison>)action; Assert.Equal(default(TQueuePoison), cast.Poison); }
public void Queued_HasMatchingInput() { var item = fixture.CreateAnonymous <TQueue>(); var action = DurableJobQueueAction.Queued(item); Assert.Equal(item, action.Input); }
public void Queued_Throws_OnNullInput_ForReferenceTypes() { if (typeof(TQueue).IsValueType) { return; } Assert.Throws <ArgumentNullException>(() => DurableJobQueueAction.Queued(default(TQueue))); }
public void Queued_HasNullPoison() { var action = DurableJobQueueAction.Queued(fixture.CreateAnonymous <TQueue>()); Assert.Equal(null, action.Poison); }
public void Queued_HasQueuedActionType() { var action = DurableJobQueueAction.Queued(fixture.CreateAnonymous <TQueue>()); Assert.Equal(DurableJobQueueActionType.Queued, action.ActionType); }