public void Indent_IndentsStringSlice(string dummyLine, int dummyIndentLength, string expectedResult)
        {
            // Arrange
            var testSubject      = new LeadingWhitespaceEditorService();
            var dummyStringSlice = new StringSlice(dummyLine);

            // Act
            StringSlice result = testSubject.Indent(dummyStringSlice, dummyIndentLength);

            // Assert
            Assert.Equal(expectedResult, result.ToString());
        }
        public void Indent_ThrowsArgumentOutOfRangeExceptionIfIndentLengthIsNegative()
        {
            // Arrange
            var       testSubject       = new LeadingWhitespaceEditorService();
            var       dummyStringSlice  = new StringSlice();
            const int dummyIndentLength = -1;

            // Act and assert
            ArgumentOutOfRangeException result = Assert.Throws <ArgumentOutOfRangeException>(() => testSubject.Indent(dummyStringSlice, dummyIndentLength));

            Assert.Equal(string.Format(Strings.ArgumentOutOfRangeException_Shared_ValueCannotBeNegative, dummyIndentLength) + "\nParameter name: indentLength",
                         result.Message,
                         ignoreLineEndingDifferences: true);
        }