Beispiel #1
0
        public void Modulus_Decimal()
        {
            IStack <Decimal> stack = new BoundedArray <Decimal>(4.0m, 2.0m);

            stack.Modulus();
            Assert.That(stack.Pop()).Equals(4.0m % 2.0m);
        }
Beispiel #2
0
        public void Modulus_Double()
        {
            IStack <Double> stack = new BoundedArray <Double>(4.0, 2.0);

            stack.Modulus();
            Assert.That(stack.Pop()).Equals(4.0 % 2.0);
        }
Beispiel #3
0
        public void Modulus_Single()
        {
            IStack <Single> stack = new BoundedArray <Single>(4.0f, 2.0f);

            stack.Modulus();
            Assert.That(stack.Pop()).Equals(4.0f % 2.0f);
        }
Beispiel #4
0
        public void Modulus_UInt64()
        {
            IStack <UInt64> stack = new BoundedArray <UInt64>(4, 2);

            stack.Modulus();
            Assert.That(stack.Pop()).Equals(4 % 2);
        }
Beispiel #5
0
        public void Modulus_Int32()
        {
            IStack <Int32> stack = new BoundedArray <Int32>(4, 2);

            stack.Modulus();
            Assert.That(stack.Pop()).Equals(4 % 2);
        }
Beispiel #6
0
        public void Modulus_nuint()
        {
            IStack <nuint> stack = new BoundedArray <nuint>(4, 2);

            stack.Modulus();
            Assert.That(stack.Pop()).Equals(4 % 2);
        }