Exemple #1
0
        public void IsInRangeShouldThrowIfAnyParameterIsNull()
        {
            Comparable @null    = null;
            Comparable instance = new Comparable();

            Should.Throw <ArgumentNullException>(() => @null.IsInRange(instance, instance));
            Should.Throw <ArgumentNullException>(() => instance.IsInRange(@null, instance));
            Should.Throw <ArgumentNullException>(() => instance.IsInRange(instance, @null));
        }