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());
 }
 public void GetVoltageTwoComponent4()
 {
     var test = new NetList();
     var component = new SimTestComponent(3);
     test.Add(component);
     var component2 = new SimTestComponent(3);
     test.Add(component2);
     test.AddConnection(component.Bottom, component2.Top);
     test.Simulate();
     Assert.AreEqual(NetList.GetVoltageDrop(component.Top, component2.Bottom), 6);
 }