示例#1
0
 public void DoubleIncrement()
 {
     Assert.Equal(1d, Incrementor <double> .Increment(0d));
 }
示例#2
0
 public void DecimalIncrement()
 {
     Assert.Equal(1M, Incrementor <decimal> .Increment(0M));
 }
示例#3
0
 public void DoubleDecrement()
 {
     Assert.Equal(-1d, Incrementor <double> .Decrement(0d));
 }
示例#4
0
 public void BigDecimalIncrement()
 {
     Assert.Equal(BigDecimal.One, Incrementor <BigDecimal> .Increment(BigDecimal.Zero));
 }
示例#5
0
 public void DecimalDecrement()
 {
     Assert.Equal(-1M, Incrementor <decimal> .Decrement(0M));
 }
示例#6
0
 public void ByteIncrement()
 {
     Assert.Equal((byte)1, Incrementor <byte> .Increment((byte)0));
 }
示例#7
0
 public void BigDecimalDecrement()
 {
     Assert.Equal(BigDecimal.MinusOne, Incrementor <BigDecimal> .Decrement(BigDecimal.Zero));
 }
示例#8
0
 public void Int32Increment()
 {
     Assert.Equal(1, Incrementor <int> .Increment(0));
 }
示例#9
0
 public void ByteDecrement()
 {
     Assert.Equal((byte)0, Incrementor <byte> .Decrement((byte)1));
 }
示例#10
0
 public void IncrementableIncrement()
 {
     Assert.Equal(Incrementable.MaxValue, Incrementor <Incrementable> .Increment(new Incrementable()));
 }
示例#11
0
 public void Int32Decrement()
 {
     Assert.Equal(-1, Incrementor <int> .Decrement(0));
 }
示例#12
0
 public void IncrementableDecrement()
 {
     Assert.Equal(Incrementable.MinValue, Incrementor <Incrementable> .Decrement(new Incrementable()));
 }
示例#13
0
 public void CharIncrement()
 {
     Assert.Equal('c', Incrementor <char> .Increment('b'));
 }
示例#14
0
 public void CharDecrement()
 {
     Assert.Equal('a', Incrementor <char> .Decrement('b'));
 }
示例#15
0
 public void BigIntegerIncrement()
 {
     Assert.Equal(BigInteger.One, Incrementor <BigInteger> .Increment(BigInteger.Zero));
 }
示例#16
0
 public void BigIntegerDecrement()
 {
     Assert.Equal(BigInteger.MinusOne, Incrementor <BigInteger> .Decrement(BigInteger.Zero));
 }