public static void ParseCsv_MissingColumn_ThrowsException() { ArgumentsTable acTable = new ArgumentsTable(); acTable.argumentTextColumnName = "A"; acTable.correctFallacyOptionTextColumnName = "C"; Assert.Throws(typeof(System.InvalidOperationException), () => acTable.ParseCsv("A\tC\nA1\nC1")) ; }
private static void AssertOneArgument( ref ArgumentsTable table, string csvText, string expectedArgumentText, string expectedCorrectFallacyOptionText) { table.ParseCsv(csvText); Argument[] expectedArguments = new Argument[1] { new Argument() { argumentText = expectedArgumentText, correctFallacyOptionText = expectedCorrectFallacyOptionText } }; Assert.AreEqual(expectedArguments, table.arguments); }