public void TestSingleResistors3() { var testResistComponent = new Resistor(1); var testBatteryComponent = new Battery(2); var test = new NetList(); test.Add(testResistComponent); test.Add(testBatteryComponent); test.AddConnection(testBatteryComponent.Bottom, testResistComponent.Top); test.AddConnection(testBatteryComponent.Top, testResistComponent.Bottom); test.Simulate(); Assert.AreEqual(2, testResistComponent.GetVoltageDrop()); }