public void Test_PrepareValue_WithGuid()
 {
     //---------------Set up test pack-------------------
     SqlFormatter sqlFormatter = new SqlFormatter("", "", "", "");
     Guid g = Guid.NewGuid();
     //---------------Assert Precondition----------------
     //---------------Execute Test ----------------------
     object preparedValue = sqlFormatter.PrepareValue(g);
     //---------------Test Result -----------------------
     string strg = g.ToString("B").ToUpper();
     Assert.AreEqual(strg, preparedValue, "PrepareValue is not preparing guids correctly.");
 }
        public void Test_PrepareValue_WithTimeSpan_WhenHasDays_ShouldReturnDateTime()
        {
            //---------------Set up test pack-------------------
            SqlFormatter sqlFormatter = new SqlFormatter("", "", "", "");
            var value = new TimeSpan(1,23,59,59,999);
            //---------------Assert Precondition----------------
            //---------------Execute Test ----------------------
			object preparedValue = sqlFormatter.PrepareValue(value);
            //---------------Test Result -----------------------
        	var expected = new DateTime(1900,1,2,23,59,59,999);
			Assert.AreEqual(expected, preparedValue, "PrepareValue is not preparing timespans correctly.");
        }
 public void TestSqlFormatter_PrepareValue_ShouldReturnValue()
 {
     var valueObject = new SimpleValueObjectStub("test");
     var sqlFormatter = new SqlFormatter("'", "'", "f", "yh");
     var preparedValue = sqlFormatter.PrepareValue(valueObject);
     Assert.AreEqual("test", preparedValue.ToString());
 }