Ejemplo n.º 1
0
 public void TestParse_ValueBlank_ReturnsNull()
 {
     StringColumn column = new StringColumn("name");
     string actual = (string)column.Parse("     ");
     string expected = null;
     Assert.AreEqual(expected, actual, "The value was not parsed as null.");
 }
Ejemplo n.º 2
0
 public void TestParse_ValueTrimmed()
 {
     StringColumn column = new StringColumn("name");
     string actual = (string)column.Parse("  abc 123 ");
     string expected = "abc 123";
     Assert.AreEqual(expected, actual, "The value was not trimmed.");
 }
Ejemplo n.º 3
0
        public void TestParse_ValueTrimmed()
        {
            StringColumn column   = new StringColumn("name");
            string       actual   = (string)column.Parse("  abc 123 ");
            string       expected = "abc 123";

            Assert.AreEqual(expected, actual, "The value was not trimmed.");
        }
Ejemplo n.º 4
0
        public void TestParse_ValueBlank_ReturnsNull()
        {
            StringColumn column   = new StringColumn("name");
            string       actual   = (string)column.Parse("     ");
            string       expected = null;

            Assert.AreEqual(expected, actual, "The value was not parsed as null.");
        }
Ejemplo n.º 5
0
        public void TestParse_ValueBlank_ReturnsNull()
        {
            StringColumn column   = new StringColumn("name");
            string       actual   = (string)column.Parse("     ");
            string       expected = null;

            Assert.Equal(expected, actual);
        }