public void op_FromString_stringZz() { const long expected = (36 * 36) - 1; long actual = AlphaDecimal.FromString("zz"); Assert.Equal(expected, actual); }
public void opGreaterThan_AlphaDecimal_AlphaDecimal() { AlphaDecimal one = 1; AlphaDecimal two = 2; Assert.True(two > one); }
public void op_FromString_string() { const long expected = 0; long actual = AlphaDecimal.FromString("0"); Assert.Equal(expected, actual); }
public void op_GetHashCode() { var expected = 0.GetHashCode(); var actual = new AlphaDecimal().GetHashCode(); Assert.Equal(expected, actual); }
public void op_FromString_stringLongMin() { const long expected = long.MinValue + 1; long actual = AlphaDecimal.FromString("-1y2p0ij32e8e7"); Assert.Equal(expected, actual); }
public void prop_Zero() { AlphaDecimal expected = 0; var actual = AlphaDecimal.Zero; Assert.Equal(expected, actual); }
public void opImplicit_AlphaDecimal_GuidEmpty() { var expected = new AlphaDecimal(); AlphaDecimal actual = Guid.Empty; Assert.Equal(expected, actual); }
public void opEquality_AlphaDecimal_AlphaDecimal() { var obj = new AlphaDecimal(); var comparand = new AlphaDecimal(); Assert.True(obj == comparand); }
public void op_FromString_stringIntMin() { const long expected = int.MinValue + 1; long actual = AlphaDecimal.FromString("-zik0zj"); Assert.Equal(expected, actual); }
public void op_Compare_AlphaDecimal_AlphaDecimal() { const long expected = 0; var actual = AlphaDecimal.Compare(2, 2); Assert.Equal(expected, actual); }
public void op_Compare_AlphaDecimal6_AlphaDecimal3() { const long expected = 3; var actual = AlphaDecimal.Compare(6, 3); Assert.Equal(expected, actual); }
public void op_Compare_AlphaDecimal3_AlphaDecimal6() { const long expected = -3; var actual = AlphaDecimal.Compare(3, 6); Assert.Equal(expected, actual); }
public void opLessThan_AlphaDecimal_AlphaDecimal() { AlphaDecimal one = 1; AlphaDecimal two = 2; Assert.True(one < two); }
public void opInequality_AlphaDecimal_AlphaDecimal() { var obj = new AlphaDecimal(); var comparand = new AlphaDecimal(); Assert.False(obj != comparand); }
public void op_Increment() { AlphaDecimal one = 1; AlphaDecimal expected = 2; var actual = one.Increment(); Assert.Equal(expected, actual); }
public void op_GetTypeCode() { const TypeCode expected = TypeCode.Int64; IConvertible value = new AlphaDecimal(); var actual = value.GetTypeCode(); Assert.Equal(expected, actual); }
public void opImplicit_AlphaDecimal_BigInteger() { var value = BigInteger.Zero; var expected = new AlphaDecimal(); AlphaDecimal actual = value; Assert.Equal(expected, actual); }
public void op_FromString_stringBig() { var value = new Guid("f71ae311-462f-4f65-a704-8eb9fe49a679"); AlphaDecimal expected = new BigInteger(value.ToByteArray()); var actual = AlphaDecimal.FromString("779q4dambvi6xhpfak8ne5ekx"); Assert.Equal(expected, actual); }
public void op_Decrement() { AlphaDecimal two = 2; AlphaDecimal expected = 1; var actual = two.Decrement(); Assert.Equal(expected, actual); }
public void opImplicit_string_AlphaDecimal() { const string expected = "zik0zj"; AlphaDecimal value = int.MaxValue; string actual = value; Assert.Equal(expected, actual); }
public void opImplicit_AlphaDecimal_short() { const short value = 0; var expected = new AlphaDecimal(); AlphaDecimal actual = value; Assert.Equal(expected, actual); }
public void prop_Abs() { AlphaDecimal expected = 1; AlphaDecimal value = -1; var actual = value.Abs; Assert.Equal(expected, actual); }
public void opImplicit_AlphaDecimal_Guid() { var value = new Guid("f71ae311-462f-4f65-a704-8eb9fe49a679"); AlphaDecimal expected = new BigInteger(value.ToByteArray()); AlphaDecimal actual = value; Assert.Equal(expected, actual); }
public void opAddition_AlphaDecimal_AlphaDecimal() { AlphaDecimal one = 1; AlphaDecimal two = 2; AlphaDecimal expected = 3; var actual = one + two; Assert.Equal(expected, actual); }
public void op_Mod_AlphaDecimal() { AlphaDecimal two = 2; AlphaDecimal six = 6; AlphaDecimal expected = 2; var actual = two.Mod(six); Assert.Equal(expected, actual); }
public void opDivision_AlphaDecimal_AlphaDecimal() { AlphaDecimal two = 2; AlphaDecimal six = 6; AlphaDecimal expected = 3; var actual = six / two; Assert.Equal(expected, actual); }
public void op_ToString() { const string expected = "0"; // ReSharper disable SpecifyACultureInStringConversionExplicitly var actual = new AlphaDecimal().ToString(); // ReSharper restore SpecifyACultureInStringConversionExplicitly Assert.Equal(expected, actual); }
public void opDecrement_AlphaDecimal() { AlphaDecimal actual = 2; AlphaDecimal expected = 1; actual--; Assert.Equal(expected, actual); }
public void op_Subtract_AlphaDecimal() { AlphaDecimal one = 1; AlphaDecimal three = 3; AlphaDecimal expected = 2; var actual = three.Subtract(one); Assert.Equal(expected, actual); }
public void op_Multiply_AlphaDecimal() { AlphaDecimal two = 2; AlphaDecimal six = 6; AlphaDecimal expected = 12; var actual = two.Multiply(six); Assert.Equal(expected, actual); }