Ejemplo n.º 1
0
        public void ProcessShouldReturnCollectionOfStringsWhenSeparatorIsPresent(string names, string[] expectedNames)
        {
            // Arrange
            var spliter = new ConcatedNamesProcessor();

            // Act
            var resultNames = spliter.Process(names);

            // Assert
            resultNames
            .Should()
            .BeEquivalentTo(expectedNames);
        }
Ejemplo n.º 2
0
        public void ProcessShouldThrowWhenFileNamesIsNull()
        {
            // Arrange
            string nullNames = null;
            var    spliter   = new ConcatedNamesProcessor();

            // Act
            Action splitCall = () => spliter.Process(nullNames);

            // Assert
            splitCall
            .Should()
            .Throw <ArgumentNullException>();
        }