public void ResolveTimeSpanFromMilliseconds_Fail()
        {
            int      otherMilliseconds = -1;
            TimeSpan baseTimeSpan      = TimeSpan.FromMilliseconds(10);

            Assert.Throws <InvalidOperationException>(() => CosmosDBTriggerAttributeBindingProvider.ResolveTimeSpanFromMilliseconds("SomeAttribute", baseTimeSpan, otherMilliseconds));
        }
        public void ResolveTimeSpanFromMilliseconds_Succeed()
        {
            TimeSpan baseTimeSpan = TimeSpan.FromMilliseconds(10);

            Assert.Equal(CosmosDBTriggerAttributeBindingProvider.ResolveTimeSpanFromMilliseconds("SomeAttribute", baseTimeSpan, null), baseTimeSpan);
            int      otherMilliseconds = 20;
            TimeSpan otherTimeSpan     = TimeSpan.FromMilliseconds(otherMilliseconds);

            Assert.Equal(CosmosDBTriggerAttributeBindingProvider.ResolveTimeSpanFromMilliseconds("SomeAttribute", baseTimeSpan, otherMilliseconds), otherTimeSpan);
        }