示例#1
0
 public void add_complex()
 {
     Assert.AreEqual(new Complex(6, 3), OpTester <Complex> .Add(new Complex(4, 7), new Complex(2, -4)));
 }
示例#2
0
 public void add_decimal()
 {
     Assert.AreEqual(10m, OpTester <decimal> .Add(7m, 3m));
 }
示例#3
0
 public void add_biginteger()
 {
     Assert.AreEqual(new BigInteger(10), OpTester <BigInteger> .Add(new BigInteger(7), new BigInteger(3)));
 }
示例#4
0
 public void add_double()
 {
     Assert.AreEqual(10d, OpTester <double> .Add(7d, 3d));
 }
示例#5
0
 public void add_float()
 {
     Assert.AreEqual(10f, OpTester <float> .Add(7f, 3f));
 }
示例#6
0
 public void add_int64()
 {
     Assert.AreEqual(10L, OpTester <System.Int64> .Add(7L, 3L));
 }
示例#7
0
 public void add_int32()
 {
     Assert.AreEqual(10, OpTester <System.Int32> .Add(7, 3));
 }
示例#8
0
 public void add_int16()
 {
     Assert.AreEqual((System.Int16) 10, OpTester <System.Int16> .Add((System.Int16) 7, (System.Int16) 3));
 }