Пример #1
0
 public void ComputeConversionCost_FromInt()
 {
     Assert.AreEqual(0, _converter.ComputeConversionCost(TypeId.Integer, TypeId.Integer));
     Assert.AreEqual(1, _converter.ComputeConversionCost(TypeId.Integer, TypeId.Real));
     Assert.AreEqual(2, _converter.ComputeConversionCost(TypeId.Integer, TypeId.String));
     Assert.AreEqual(int.MaxValue, _converter.ComputeConversionCost(TypeId.Integer, TypeId.DateTime));
     Assert.AreEqual(int.MaxValue, _converter.ComputeConversionCost(TypeId.Integer, TypeId.Image));
 }