示例#1
0
 public void multiply_complex()
 {
     Assert.AreEqual(new Complex(1, 21), OpTester <Complex> .Multiply(new Complex(1, 4), new Complex(5, 1)));
 }
示例#2
0
 public void multiply_decimal()
 {
     Assert.AreEqual(1271m, OpTester <decimal> .Multiply(31m, 41m));
 }
示例#3
0
 public void multiply_biginteger()
 {
     Assert.AreEqual(new BigInteger(1271), OpTester <BigInteger> .Multiply(new BigInteger(31), new BigInteger(41)));
 }
示例#4
0
 public void multiply_double()
 {
     Assert.AreEqual(1271d, OpTester <double> .Multiply(31d, 41d));
 }
示例#5
0
 public void multiply_float()
 {
     Assert.AreEqual(1271f, OpTester <float> .Multiply(31f, 41f));
 }
示例#6
0
 public void multiply_int64()
 {
     Assert.AreEqual(1271L, OpTester <System.Int64> .Multiply(31L, 41L));
 }
示例#7
0
 public void multiply_int32()
 {
     Assert.AreEqual(1271, OpTester <System.Int32> .Multiply(31, 41));
 }
示例#8
0
 public void multiply_int16()
 {
     Assert.AreEqual((System.Int16) 1271, OpTester <System.Int16> .Multiply((System.Int16) 31, (System.Int16) 41));
 }