Example #1
0
        public void ToString_Case1()
        {
            // Arrange
            // Act
            var zeroString             = zero.ToString();
            var zeroNextColumn         = zero.NextColumn.ToString();
            var zeroNextLine           = zero.NextLine.ToString();
            var zeroNextColumnNextLine = zero.NextColumn.NextLine.ToString();

            // Assert
            Assert.That(zeroString, Is.EqualTo("CharPosition(Line = 1, Column = 1, Index = 0)"));
            Assert.That(zeroNextColumn, Is.EqualTo("CharPosition(Line = 1, Column = 2, Index = 1)"));
            Assert.That(zeroNextLine, Is.EqualTo("CharPosition(Line = 2, Column = 1, Index = 1)"));
            Assert.That(zeroNextColumnNextLine, Is.EqualTo("CharPosition(Line = 2, Column = 1, Index = 2)"));
        }