コード例 #1
0
 public void ToolsColumnAddressDefaultConstruct()
 {
     Asat.Tools.ColumnAddress ca = new Asat.Tools.ColumnAddress();
     Assert.AreEqual(ca.GetServerName(), string.Empty);
     Assert.AreEqual(ca.GetDatabaseName(), string.Empty);
     Assert.AreEqual(ca.GetTableName(), string.Empty);
     Assert.AreEqual(ca.GetColumnName(), string.Empty);
 }
コード例 #2
0
 public void ToolsColumnAddressSpecifiedConstruct()
 {
     Asat.Tools.ColumnAddress ca = new Asat.Tools.ColumnAddress("A", "B", "C", "D");
     Assert.AreEqual(ca.GetServerName(), "A");
     Assert.AreEqual(ca.GetDatabaseName(), "B");
     Assert.AreEqual(ca.GetTableName(), "C");
     Assert.AreEqual(ca.GetColumnName(), "D");
 }
コード例 #3
0
 public void ToolsColumnAddressForcedUppercase()
 {
     Asat.Tools.ColumnAddress ca = new Asat.Tools.ColumnAddress(
         "lowercase",
         "test",
         "OTHER",
         "anothER.more");
     Assert.AreEqual(ca.GetServerName(), "LOWERCASE");
     Assert.AreEqual(ca.GetDatabaseName(), "TEST");
     Assert.AreEqual(ca.GetTableName(), "OTHER");
     Assert.AreEqual(ca.GetColumnName(), "ANOTHER.MORE");
 }
コード例 #4
0
 public void ToolsColumnAddressNullReplacedByEmptyString()
 {
     Asat.Tools.ColumnAddress ca = new Asat.Tools.ColumnAddress(
         "a",
         "b",
         null,
         null);
     Assert.AreEqual(ca.GetServerName(), "A");
     Assert.AreEqual(ca.GetDatabaseName(), "B");
     Assert.AreEqual(ca.GetTableName(), string.Empty);
     Assert.AreEqual(ca.GetColumnName(), string.Empty);
 }