Example #1
0
        public void DirectInvocation()
        {
            var math   = new DemoLibrary.Math();
            var random = new RandomGenerator(math);

            var number  = new Number(math, random, 5);
            var number2 = new Number(math, random, 5);

            Assert.IsTrue(number.Equals(number2));
        }
        public void DirectInvocation()
        {
            var math   = new DemoLibrary.Math();
            var random = new RandomGenerator(math);

            var number = new Number(math, random, 5);
            var result = number.MultiplyBy(3);

            Assert.AreEqual(15, result.Value);
        }
        public void DirectInvocation()
        {
            var math   = new DemoLibrary.Math();
            var random = new RandomGenerator(math);

            var number = new Number(math, random, 5);
            var result = number.RandomMultiply();

            // direct invocation cannot be asserted since it is random
        }