예제 #1
0
        public void IsEqualish_YColumnNumberZeroLineNumbersDifferByTwo_ReturnFalse()
        {
            // Arrange
            var x = new SourcePosition(5456, 13);
            var y = new SourcePosition(5458, 0);

            // Act
            var result = x.IsEqualish(y);

            // Assert
            Assert.IsFalse(result);
        }
예제 #2
0
        public void IsEqualish_YColumnNumberBiggerByTwo_ReturnFalse()
        {
            // Arrange
            var x = new SourcePosition(155, 100);
            var y = new SourcePosition(155, 102);

            // Act
            var result = x.IsEqualish(y);

            // Assert
            Assert.IsFalse(result);
        }
예제 #3
0
        public void IsEqualish_YColumnNumberZeroLineNumbersDifferByOne_ReturnTrue()
        {
            // Arrange
            var x = new SourcePosition(458, 13);
            var y = new SourcePosition(459, 0);

            // Act
            var result = x.IsEqualish(y);

            // Assert
            Assert.IsTrue(result);
        }
예제 #4
0
        public void IsEqualish_XEqualsY_ReturnTrue()
        {
            // Arrange
            var x = new SourcePosition(13, 5);
            var y = new SourcePosition(13, 5);

            // Act
            var result = x.IsEqualish(y);

            // Assert
            Assert.IsTrue(result);
        }
예제 #5
0
        public void IsEqualish_YColumnNumberBiggerByOne_ReturnTrue()
        {
            // Arrange
            var x = new SourcePosition(1, 10);
            var y = new SourcePosition(1, 11);

            // Act
            var result = x.IsEqualish(y);

            // Assert
            Assert.IsTrue(result);
        }
예제 #6
0
        public void IsEqualish_YColumnNumberZeroLineNumbersDifferByTwo_ReturnFalse()
        {
            // Arrange
            SourcePosition x = new SourcePosition(
                zeroBasedLineNumber: 5456,
                zeroBasedColumnNumber: 13);
            SourcePosition y = new SourcePosition(
                zeroBasedLineNumber: 5458,
                zeroBasedColumnNumber: 0);

            // Act
            bool result = x.IsEqualish(y);

            // Assert
            Assert.False(result);
        }
예제 #7
0
        public void IsEqualish_XColumnNumberZeroLineNumbersDifferByOne_ReturnTrue()
        {
            // Arrange
            SourcePosition x = new SourcePosition(
                zeroBasedLineNumber: 235,
                zeroBasedColumnNumber: 0);
            SourcePosition y = new SourcePosition(
                zeroBasedLineNumber: 234,
                zeroBasedColumnNumber: 102);

            // Act
            bool result = x.IsEqualish(y);

            // Assert
            Assert.True(result);
        }
예제 #8
0
        public void IsEqualish_YColumnNumberBiggerByTwo_ReturnFalse()
        {
            // Arrange
            SourcePosition x = new SourcePosition(
                zeroBasedLineNumber: 155,
                zeroBasedColumnNumber: 100);
            SourcePosition y = new SourcePosition(
                zeroBasedLineNumber: 155,
                zeroBasedColumnNumber: 102);

            // Act
            bool result = x.IsEqualish(y);

            // Assert
            Assert.False(result);
        }
예제 #9
0
        public void IsEqualish_YColumnNumberBiggerByOne_ReturnTrue()
        {
            // Arrange
            SourcePosition x = new SourcePosition(
                zeroBasedLineNumber: 1,
                zeroBasedColumnNumber: 10);
            SourcePosition y = new SourcePosition(
                zeroBasedLineNumber: 1,
                zeroBasedColumnNumber: 11);

            // Act
            bool result = x.IsEqualish(y);

            // Assert
            Assert.True(result);
        }
예제 #10
0
        public void IsEqualish_XEqualsY_ReturnTrue()
        {
            // Arrange
            SourcePosition x = new SourcePosition(
                zeroBasedLineNumber: 13,
                zeroBasedColumnNumber: 5);
            SourcePosition y = new SourcePosition(
                zeroBasedLineNumber: 13,
                zeroBasedColumnNumber: 5);

            // Act
            bool result = x.IsEqualish(y);

            // Assert
            Assert.True(result);
        }
예제 #11
0
        public void IsEqualish_YColumnNumberZeroLineNumbersDifferByTwo_ReturnFalse()
        {
            // Arrange
            SourcePosition x = new SourcePosition
            {
                ZeroBasedLineNumber   = 5456,
                ZeroBasedColumnNumber = 13
            };
            SourcePosition y = new SourcePosition
            {
                ZeroBasedLineNumber   = 5458,
                ZeroBasedColumnNumber = 0
            };

            // Act
            bool result = x.IsEqualish(y);

            // Assert
            Assert.IsFalse(result);
        }
예제 #12
0
        public void IsEqualish_XColumnNumberZeroLineNumbersDifferByOne_ReturnTrue()
        {
            // Arrange
            SourcePosition x = new SourcePosition
            {
                ZeroBasedLineNumber   = 235,
                ZeroBasedColumnNumber = 0
            };
            SourcePosition y = new SourcePosition
            {
                ZeroBasedLineNumber   = 234,
                ZeroBasedColumnNumber = 102
            };

            // Act
            bool result = x.IsEqualish(y);

            // Assert
            Assert.IsTrue(result);
        }
예제 #13
0
        public void IsEqualish_YColumnNumberBiggerByOne_ReturnTrue()
        {
            // Arrange
            SourcePosition x = new SourcePosition
            {
                ZeroBasedLineNumber   = 1,
                ZeroBasedColumnNumber = 10
            };
            SourcePosition y = new SourcePosition
            {
                ZeroBasedLineNumber   = 1,
                ZeroBasedColumnNumber = 11
            };

            // Act
            bool result = x.IsEqualish(y);

            // Assert
            Assert.IsTrue(result);
        }