Exemplo n.º 1
0
        public void op_Header_KeyStringDictionary_whenEmptyValue()
        {
            var obj = new KeyStringDictionary
                          {
                              new KeyStringPair(string.Empty, "x"),
                              new KeyStringPair("ABC", "x")
                          };

            const string expected = "\tABC";
            var actual = Tsv.Header(obj);

            Assert.Equal(expected, actual);
        }
Exemplo n.º 2
0
        public void op_Header_KeyStringDictionary()
        {
            var obj = new KeyStringDictionary
                          {
                              new KeyStringPair("A", string.Empty),
                              new KeyStringPair("B", string.Empty)
                          };

            const string expected = "A\tB";
            var actual = Tsv.Header(obj);

            Assert.Equal(expected, actual);
        }
Exemplo n.º 3
0
 public void op_Header_KeyStringDictionaryNull()
 {
     Assert.Throws<ArgumentNullException>(() => Tsv.Header(null));
 }
Exemplo n.º 4
0
 public void op_Header_KeyStringDictionaryEmpty()
 {
     Assert.Throws<ArgumentOutOfRangeException>(() => Tsv.Header(new KeyStringDictionary()));
 }