Exemple #1
0
        public void ImplicitCastOperator_Deleted_HasDefaultInput()
        {
            var action = DurableJobQueueAction.Deleted(fixture.CreateAnonymous <TQueuePoison>());
            var cast   = (DurableJobQueueAction <TQueue, TQueuePoison>)action;

            Assert.Equal(default(TQueue), cast.Input);
        }
Exemple #2
0
        public void Deleted_HasMatchingPoison()
        {
            var poison = fixture.CreateAnonymous <TQueuePoison>();
            var action = DurableJobQueueAction.Deleted(poison);

            Assert.Equal(poison, action.Poison);
        }
Exemple #3
0
        public void Deleted_Throws_OnNullPoison_ForReferenceTypes()
        {
            if (typeof(TQueuePoison).IsValueType)
            {
                return;
            }

            Assert.Throws <ArgumentNullException>(() => DurableJobQueueAction.Deleted(default(TQueuePoison)));
        }
Exemple #4
0
        public void Deleted_HasNullInput()
        {
            var action = DurableJobQueueAction.Deleted(fixture.CreateAnonymous <TQueuePoison>());

            Assert.Equal(null, action.Input);
        }
Exemple #5
0
        public void Deleted_HasDeletedActionType()
        {
            var action = DurableJobQueueAction.Deleted(fixture.CreateAnonymous <TQueuePoison>());

            Assert.Equal(DurableJobQueueActionType.Deleted, action.ActionType);
        }