Esempio n. 1
0
        public void Subtract_Decimal()
        {
            IStack <Decimal> stack = new BoundedArray <Decimal>(4.0m, 2.0m);

            stack.Subtract();
            Assert.That(stack.Pop()).Equals(4.0m - 2.0m);
        }
Esempio n. 2
0
        public void Subtract_Double()
        {
            IStack <Double> stack = new BoundedArray <Double>(4.0, 2.0);

            stack.Subtract();
            Assert.That(stack.Pop()).Equals(4.0 - 2.0);
        }
Esempio n. 3
0
        public void Subtract_Single()
        {
            IStack <Single> stack = new BoundedArray <Single>(4.0f, 2.0f);

            stack.Subtract();
            Assert.That(stack.Pop()).Equals(4.0f - 2.0f);
        }
Esempio n. 4
0
        public void Subtract_UInt64()
        {
            IStack <UInt64> stack = new BoundedArray <UInt64>(4, 2);

            stack.Subtract();
            Assert.That(stack.Pop()).Equals(4 - 2);
        }
Esempio n. 5
0
        public void Subtract_Int32()
        {
            IStack <Int32> stack = new BoundedArray <Int32>(4, 2);

            stack.Subtract();
            Assert.That(stack.Pop()).Equals(4 - 2);
        }
Esempio n. 6
0
        public void Subtract_nuint()
        {
            IStack <nuint> stack = new BoundedArray <nuint>(4, 2);

            stack.Subtract();
            Assert.That(stack.Pop()).Equals(4 - 2);
        }