示例#1
0
        public void InBetweenScalingIsMultiplicative()
        {
            var leftOperand    = new Kilo();
            var rightOperand   = new Hecto();
            var multiplication = leftOperand.Exponent + rightOperand.Exponent;
            var operation      = Normalisers.Get(multiplication);

            IsMultiply(operation);
        }
示例#2
0
        public void InBetweenScalingIsBasedOnLargerOfBothOperands()
        {
            var largerOperand   = new Mega();
            var inBetweenPrefix = new Hecto();
            var expectedPrefix  = new Mega();
            var multiplication  = largerOperand.Exponent + inBetweenPrefix.Exponent;
            var operation       = Normalisers.Get(multiplication);

            Assert.Equal(expectedPrefix.Exponent, operation.Exponent);
        }