Ejemplo n.º 1
0
            public void it_should_remove_all_illegal_characters()
            {
                // Arrange
                var fakeName = "? f|<a>\\ke *\\\\:<>?/|\"#%' /n%a$m#e:";

                string[] illegalChars = { "*", "\\", ":", "<", ">", "?", "/", "|", "\"", "#", "%", "'" };

                // Act
                fakeName = SharePointService.GetValidDocumentName(fakeName, "");

                // Assert
                fakeName.Should().NotContainAny(illegalChars);
            }