Esempio n. 1
0
        public void TestWithFormatting()
        {
            var c = new ConcreteTestConfig(new DateTime(1981, 1, 28, 12, 34, 56));

            Assert.AreEqual("Date=1981-01-28, Time=12:34:56", c.GetParamValue("DateAndTime"));
        }
Esempio n. 2
0
        public void TestStrings()
        {
            var c = new ConcreteTestConfig("john", "passs", "jumbosrv01", "northwind");

            Assert.AreEqual("user=john;passwd=passs;srv=jumbosrv01;catalog=northwind", c.GetParamValue("ConnStr"));
        }
Esempio n. 3
0
 public void TestWithFormatting()
 {
     var c = new ConcreteTestConfig(new DateTime(1981, 1, 28, 12, 34, 56));
     Assert.AreEqual("Date=1981-01-28, Time=12:34:56", c.GetParamValue("DateAndTime"));
 }
Esempio n. 4
0
        public void TestStrings2()
        {
            var c = new ConcreteTestConfig("jumbosrv01\\SQL2020");

            Assert.AreEqual("srv=jumbosrv01\\\\SQL2020", c.GetParamValue("ServerJson"));
        }
Esempio n. 5
0
 public void TestStrings()
 {
     var c = new ConcreteTestConfig("john", "passs", "jumbosrv01", "northwind");
     Assert.AreEqual("user=john;passwd=passs;srv=jumbosrv01;catalog=northwind", c.GetParamValue("ConnStr"));
 }