예제 #1
0
 public void op_Line_IEnumerableStringNull()
 {
     Assert.Throws<ArgumentNullException>(() => Csv.Line(null as IEnumerable<string>));
 }
예제 #2
0
        public void op_Save_IEnumerableOfKeyStringDictionary_FuncNull()
        {
            var data = new List<KeyStringDictionary>();

            Assert.Throws<ArgumentNullException>(() => Csv.Save(data, null as Func<KeyStringDictionary, FileInfo>));
        }
예제 #3
0
 public void op_Line_IEnumerableStringEmpty()
 {
     Assert.Throws<ArgumentOutOfRangeException>(() => Csv.Line(new List<string>()));
 }
예제 #4
0
        public void op_Save_IEnumerableOfKeyStringDictionary_FileInfoNull_FileMode()
        {
            var data = new List<KeyStringDictionary>();

            Assert.Throws<ArgumentNullException>(() => Csv.Save(data, null, FileMode.Append));
        }
예제 #5
0
 public void op_Header_KeyStringDictionaryNull()
 {
     Assert.Throws<ArgumentNullException>(() => Csv.Header(null));
 }
예제 #6
0
 public void op_Header_KeyStringDictionaryEmpty()
 {
     Assert.Throws<ArgumentOutOfRangeException>(() => Csv.Header(new KeyStringDictionary()));
 }
예제 #7
0
 public void op_Line_KeyStringDictionary_IListOfString_whenColumnsNotFound()
 {
     Assert.Throws<KeyNotFoundException>(() => Csv.Line(new KeyStringDictionary(), "A,B".Split(',').ToList()));
 }
예제 #8
0
 public void op_Line_KeyStringDictionary_IListOfStringNull()
 {
     Assert.Throws<ArgumentNullException>(() => Csv.Line(new KeyStringDictionary(), null));
 }
예제 #9
0
 public void op_Line_KeyStringDictionary_IListOfStringEmpty()
 {
     Assert.Throws<ArgumentOutOfRangeException>(() => Csv.Line(new KeyStringDictionary(), new List<string>()));
 }
예제 #10
0
 public void op_Line_KeyStringDictionaryNull()
 {
     Assert.Throws<ArgumentNullException>(() => Csv.Line(null as KeyStringDictionary));
 }