public void AmperageIsTrue(double electricalVoltage, double electricalResistance, double expectedResult) { // Arrange. // Act. double result = ClassForUnitTesting.Amperage(electricalVoltage, electricalResistance); // Assert. Assert.AreEqual(result, expectedResult); }
public void AmperageIsTrue() { // Arrange. // Act. double result = ClassForUnitTesting.Amperage(50, 5); // Assert. Assert.AreEqual(result, 10); }
public void AmperageIsFalse(double electricalVoltage, double electricalResistance, double expectedresult) { double result = ClassForUnitTesting.Amperage(60, 5); Assert.IsFalse(result == expectedresult); }