Exemple #1
0
 public void It_should_return_true_when_the_range_is_for_the_same_row()
 {
     Assert.IsTrue(CellRange.IsSameRow("A1:D1"));
 }
Exemple #2
0
 public void It_should_return_false_when_the_range_is_not_for_the_same_row()
 {
     Assert.IsFalse(CellRange.IsSameRow("A1:A20"));
 }
Exemple #3
0
        public void It_should_throw_an_exception_when_the_range_parameter_is_null()
        {
            var exception = Assert.Throws <ArgumentNullException>(() => CellRange.IsSameRow(null));

            Assert.AreEqual($"Value cannot be null. (Parameter 'range')", exception.Message);
        }