public void ImplicitCastOperator_Deleted_HasDefaultInput() { var action = DurableJobQueueAction.Deleted(fixture.CreateAnonymous <TQueuePoison>()); var cast = (DurableJobQueueAction <TQueue, TQueuePoison>)action; Assert.Equal(default(TQueue), cast.Input); }
public void Deleted_HasMatchingPoison() { var poison = fixture.CreateAnonymous <TQueuePoison>(); var action = DurableJobQueueAction.Deleted(poison); Assert.Equal(poison, action.Poison); }
public void Deleted_Throws_OnNullPoison_ForReferenceTypes() { if (typeof(TQueuePoison).IsValueType) { return; } Assert.Throws <ArgumentNullException>(() => DurableJobQueueAction.Deleted(default(TQueuePoison))); }
public void Deleted_HasNullInput() { var action = DurableJobQueueAction.Deleted(fixture.CreateAnonymous <TQueuePoison>()); Assert.Equal(null, action.Input); }
public void Deleted_HasDeletedActionType() { var action = DurableJobQueueAction.Deleted(fixture.CreateAnonymous <TQueuePoison>()); Assert.Equal(DurableJobQueueActionType.Deleted, action.ActionType); }