コード例 #1
0
        public void IntegerIsNextAdjacentWorksForNextRow()
        {
            var a1 = new CellRef("A1");
            var a2 = new CellRef("A2");

            CellRefExtensionMethods.IsNextAdjacentTo(a2.Row, a2.ColumnNumber, a1.Row, a1.ColumnNumber).Should()
            .BeTrue();
        }
コード例 #2
0
        public void IntegerIsNextAdjacentWorksForSameRow()
        {
            var a1 = new CellRef("A1");
            var b1 = new CellRef("B1");

            CellRefExtensionMethods.IsNextAdjacentTo(b1.Row, b1.ColumnNumber, a1.Row, a1.ColumnNumber).Should()
            .BeTrue();
        }