public void ShouldCalculateOhmLowWithTensionAndResitance_2() { var result = OhmLow.Calculate("50 Ohm et 2000 V"); Assert.AreEqual("40 A", result); }
public void OnlyTowDigitAfterCommaShouldBeDisplayed() { var result = OhmLow.Calculate("10 V , 30 mA"); Assert.AreEqual("333.33 Ohm", result); }
public void ShouldCalculateOhmLowWithTensionAndResitance() { var result = OhmLow.Calculate("100 V et 100 Ohm"); Assert.AreEqual("1 A", result); }
public void IfCalculatingWithTensionAndZeroIntensityAnErrorShouldBeThrpwn() { Assert.Throws <OhmLawException>(() => OhmLow.Calculate("100 V et 0 A")); }
public void ShouldDealWithMegaOutput() { var result = OhmLow.Calculate("1 A , 10 MOhm"); Assert.AreEqual("10 MV", result); }
public void ShouldReconizeExpressionWithComma() { var result = OhmLow.Calculate("1 A , 100 Ohm"); Assert.AreEqual("100 V", result); }
public void ShouldDealWithDigitAfter0InInput() { var result = OhmLow.Calculate("5 A et 10 V"); Assert.AreEqual("2 Ohm", result); }
public void ShouldDealWithDigitAfter0InOutput() { var result = OhmLow.Calculate("1 A , 100 Ohm"); Assert.AreEqual("100 V", result); }
public void ShouldDealWithMicroInOutput() { var result = OhmLow.Calculate("1 A , 100 µOhm"); Assert.AreEqual("100 µV", result); }
public void ShouldDealWithKiloInput() { var result = OhmLow.Calculate("5 mA et 10 kOhm"); Assert.AreEqual("50 V", result); }
public void ShouldDealWithMegaInInput() { var result = OhmLow.Calculate("5 µA et 10 MOhm"); Assert.AreEqual("50 V", result); }
public void ShouldDealWithNoPuissanceInInput() { var result = OhmLow.Calculate("100 V et 10 A"); Assert.AreEqual("10 Ohm", result); }
public void ShouldDealWithMiliInInput() { var result = OhmLow.Calculate("5 nA et 10 mV"); Assert.AreEqual("2 MOhm", result); }
public void ShouldCalculateOhmLowWithTensionAndIntensity_2() { var result = OhmLow.Calculate("5 A et 10 V"); Assert.AreEqual("2 Ohm", result); }
public void ShouldCalculateOhmLowWithResistanceAndIntensity_2() { var result = OhmLow.Calculate("1 A et 100 Ohm"); Assert.AreEqual("100 V", result); }
public void ShouldDealWithMiliInOutput() { var result = OhmLow.Calculate("1 mA , 100 Ohm"); Assert.AreEqual("100 mV", result); }
public void ShouldCalculateOhmLowWithTensionAndIntensity() { var result = OhmLow.Calculate("100 V et 10 A"); Assert.AreEqual("10 Ohm", result); }
public void ShouldDealWithNoPuissanceInOutput() { var result = OhmLow.Calculate("1 mA , 100 kOhm"); Assert.AreEqual("100 V", result); }
public void nospaceshouldnotbeanerrorinexpressionreconization() { var result = OhmLow.Calculate("1A , 100Ohm"); Assert.AreEqual("100 V", result); }
public void lotOfSpacesShouldNotbeAnErrorInExpressionReconization() { var result = OhmLow.Calculate(" 1A et 100Ohm "); Assert.AreEqual("100 V", result); }