Ejemplo n.º 1
0
 public void ConvertParameterTest()
 {
     Assert.AreEqual("id", _nameConverter.ConvertParameter("@ID"));
     Assert.AreEqual("someId", _nameConverter.ConvertParameter("@SomeID"));
     Assert.AreEqual("productName", _nameConverter.ConvertParameter("@PRODUCT_NAME"));
     Assert.AreEqual("productName", _nameConverter.ConvertParameter("@ProductName"));
     Assert.AreEqual("productName", _nameConverter.ConvertParameter("@product_name"));
     Assert.AreEqual("productName", _nameConverter.ConvertParameter("@product__name"));
     Assert.AreEqual("a", _nameConverter.ConvertParameter("@a"));
     Assert.AreEqual(string.Empty, _nameConverter.ConvertParameter(string.Empty));
     Assert.AreEqual(null, _nameConverter.ConvertParameter(null));
 }