public void ParsesCSV(string line, string cusipExpected, string figiExpected, string sedolExpected, string isinExpected) { var securityDefinition = SecurityDefinition.FromCsvLine(line); Assert.AreEqual(cusipExpected, securityDefinition.CUSIP); Assert.AreEqual(figiExpected, securityDefinition.CompositeFIGI); Assert.AreEqual(sedolExpected, securityDefinition.SEDOL); Assert.AreEqual(isinExpected, securityDefinition.ISIN); }
public void DoesNotParseCSV(string line) { try { var lines = SecurityDefinition.FromCsvLine(line); Assert.Fail($"Successfully read line when expecting failure: {line}"); } catch { } }