SpiceSharp / SpiceSharpParser

SPICE netlists parser for .NET
MIT License
25 stars 6 forks source link

IntegrationTests fail #93

Closed ewiebe1 closed 5 years ago

ewiebe1 commented 5 years ago

integration tests fail

Used SpiceSharp version: 2.5.7

Error e.g.: Testname: SpiceSharpParser.IntegrationTests.Components.ISwitchTests.PartialOnTest FullName für Test: SpiceSharpParser.IntegrationTests.Components.ISwitchTests.PartialOnTest Testquelle: C:\dev\Projekte\extern\SpiceSharp\SpiceSharpParser\src\SpiceSharpParser.IntegrationTests\Components\ISwitchTests.cs : Zeile 8 Testergebnis: Fehler Testdauer: 0:00:00,008

Ergebnis StackTrace:
at System.ThrowHelper.ThrowKeyNotFoundException() at System.Collections.Generic.Dictionary2.get_Item(TKey key) at SpiceSharp.TypeDictionary1.Get[TResult]() at SpiceSharpParser.ModelReaders.Netlist.Spice.Context.SimulationPreparations.<>cDisplayClass10_0.b0(BaseSimulation simulation, ISimulationEvaluators evaluators, SimulationExpressionContexts contexts) in C:\dev\Projekte\extern\SpiceSharp\SpiceSharpParser\src\SpiceSharpParser\ModelReaders\Netlist\Spice\Context\SimulationPreparations.cs:line 59 at SpiceSharpParser.ModelReaders.Netlist.Spice.Context.SimulationsUpdates.<>cDisplayClass17_0.b2(Object sender, LoadStateEventArgs args) in C:\dev\Projekte\extern\SpiceSharp\SpiceSharpParser\src\SpiceSharpParser\ModelReaders\Netlist\Spice\Context\Updates\SimulationsUpdates.cs:line 48 at System.EventHandler`1.Invoke(Object sender, TEventArgs e) at SpiceSharp.Simulations.BaseSimulation.Load() at SpiceSharp.Simulations.BaseSimulation.Iterate(Int32 maxIterations) at SpiceSharp.Simulations.BaseSimulation.Op(Int32 maxIterations) at SpiceSharp.Simulations.OP.Execute() at SpiceSharp.Simulations.Simulation.Run(Circuit circuit) at SpiceSharpParser.IntegrationTests.BaseTests.RunOpSimulation(SpiceNetlistReaderResult readerResult, String nameOfExport) in C:\dev\Projekte\extern\SpiceSharp\SpiceSharpParser\src\SpiceSharpParser.IntegrationTests\BaseTests.cs:line 151 at SpiceSharpParser.IntegrationTests.Components.ISwitchTests.PartialOnTest() in C:\dev\Projekte\extern\SpiceSharp\SpiceSharpParser\src\SpiceSharpParser.IntegrationTests\Components\ISwitchTests.cs:line 21 Ergebnis Meldung: System.Collections.Generic.KeyNotFoundException : The given key was not present in the dictionary.

marcin-golebiowski commented 5 years ago

@ewiebe1 I will take a look today.

marcin-golebiowski commented 5 years ago

@ewiebe1 I think you are using some old code of SpiceSharpParser. Please sync with master. For example in the new code there are 608 tests in total.

ewiebe1 commented 5 years ago

Sorry, you are right, old code