Exemplo n.º 1
0
        public void Divide_DivideVolumeAndLength_ReturnsArea()
        {
            var expected    = new StandardMeasure <Area>(4.0);
            var numerator   = new StandardMeasure <Volume>(8.0);
            var denominator = new StandardMeasure <Length>(200.0, Length.CentiMeter);
            StandardMeasure <Area> actual; ArithmeticOperations.Divide(numerator, denominator, out actual);

            MeasureAssert.MeasuresAreEqual(expected, actual);
        }
Exemplo n.º 2
0
 public void Divide_DivideAreaAndAreaToLength_Throws()
 {
     var numerator   = new StandardMeasure <Area>(8.0);
     var denominator = new StandardMeasure <Area>(200.0, Area.SquareDeciMeter);
     StandardMeasure <Length> throws; ArithmeticOperations.Divide(numerator, denominator, out throws);
 }
Exemplo n.º 3
0
 public void Divide_DivideAreaAndAreaToLength_Throws()
 {
     var    numerator   = new Area(8.0);
     var    denominator = new Area(200.0, Area.SquareDeciMeter);
     Length throws; ArithmeticOperations.Divide(numerator, denominator, out throws);
 }