public void ProcessShouldReturnCollectionOfStringsWhenSeparatorIsPresent(string names, string[] expectedNames) { // Arrange var spliter = new ConcatedNamesProcessor(); // Act var resultNames = spliter.Process(names); // Assert resultNames .Should() .BeEquivalentTo(expectedNames); }
public void ProcessShouldThrowWhenFileNamesIsNull() { // Arrange string nullNames = null; var spliter = new ConcatedNamesProcessor(); // Act Action splitCall = () => spliter.Process(nullNames); // Assert splitCall .Should() .Throw <ArgumentNullException>(); }