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.");
 }
 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.");
 }
Example #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.");
        }
Example #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.");
        }
Example #5
0
        public void TestParse_ValueBlank_ReturnsNull()
        {
            StringColumn column   = new StringColumn("name");
            string       actual   = (string)column.Parse("     ");
            string       expected = null;

            Assert.Equal(expected, actual);
        }