Пример #1
0
        public static void ParseCsv_NoColumn_CreatesZeroFallacies()
        {
            FallaciesTable oTable = new FallaciesTable();

            oTable.optionTextColumnName = "O";
            oTable.ParseCsv("O\t\n");

            Assert.AreEqual(new Fallacy[0], oTable.fallacies);
        }
Пример #2
0
        private static void AssertOneFallacy(
            ref FallaciesTable table, string csvText, string expectedOptionText)
        {
            table.ParseCsv(csvText);
            Fallacy[] expectedFallacies = new Fallacy[1]
            {
                new Fallacy()
                {
                    optionText = expectedOptionText
                }
            };

            Assert.AreEqual(expectedFallacies, table.fallacies);
        }