public void Should_Parse_SymbolBySicCodeMessage_WithCommasInDescription(string cultureName) { // Arrange TestHelper.SetThreadCulture(cultureName); var message = "8322,PRSC,1,1,PROVIDENCE,SERVICE,CORP,"; // Act var symbolBySicCodeMessageParsed = SymbolBySicCodeMessage.Parse(message); var symbolBySicCodeMessage = new SymbolBySicCodeMessage(8322, "PRSC", 1, 1, "PROVIDENCE,SERVICE,CORP"); // Assert Assert.AreEqual(symbolBySicCodeMessageParsed, symbolBySicCodeMessage); }
public void Should_Parse_SymbolBySicCodeMessage(string cultureName) { // Arrange TestHelper.SetThreadCulture(cultureName); var message = "8322,PRSC,1,1,PROVIDENCE SERVICE CORP,"; var message62 = "LS,8322,PRSC,1,1,PROVIDENCE SERVICE CORP,"; // Act var symbolBySicCodeMessageParsed = SymbolBySicCodeMessage.Parse(message); var symbolBySicCodeMessage62Parsed = SymbolBySicCodeMessage.Parse(message62); var symbolBySicCodeMessage = new SymbolBySicCodeMessage(8322, "PRSC", 1, 1, "PROVIDENCE SERVICE CORP"); // Assert Assert.AreEqual(symbolBySicCodeMessageParsed, symbolBySicCodeMessage); Assert.AreEqual(symbolBySicCodeMessage62Parsed, symbolBySicCodeMessage); }