public void CalculateZTest(double frequency) { Resistor resistor = new Resistor("R", 20); Complex expected = new Complex(20, 0); Assert.AreEqual(expected, resistor.CalculateZ(frequency)); }