public void DivideOperator_DivideByItself_ReturnsUnityDoublet() { var expected = new MeasureDoublet <Number, Number>(amount1: 1.0, amount2: 1.0); var actual = _instance / _instance; IMeasureDoubletAssert.AreEqual(expected, actual); }
public void DivideOperator_DivideBy2And3_ReturnsHalfTimeOneThirdPower() { var expected = new MeasureDoublet <Time, Power>(amount1: 2.5, amount2: 0.04); var actual = _instance / new MeasureDoublet <Number, Number>(amount1: 2.0, amount2: 3.0); IMeasureDoubletAssert.AreEqual(expected, actual); }
public void MinusOperator_SubtractInstanceWithItself_ReturnsZero() { var expected = new MeasureDoublet <Time, Power>(amount1: 0.0, amount2: 0.0); var actual = _instance - _instance; IMeasureDoubletAssert.AreEqual(expected, actual); }
public void TimesOperator_MultiplyBy2And3_ReturnsDoubleTimeThreeTimesPower() { var expected = new MeasureDoublet <Time, Power>(amount1: 10.0, amount2: 0.36); var actual = _instance * new MeasureDoublet <Number, Number>(amount1: 2.0, amount2: 3.0); IMeasureDoubletAssert.AreEqual(expected, actual); }
public void PlusOperator_AddInstanceWithItself_ReturnsDoubleInstance() { var expected = new MeasureDoublet <Time, Power>(amount1: 10.0, amount2: 0.24); var actual = _instance + _instance; IMeasureDoubletAssert.AreEqual(expected, actual); }