Ejemplo n.º 1
0
        FaultResult _runFaultSimulation(IFaultDefinition faultDefinition, IPlatformEngine sim)
        {
            sim.Init();

            faultDefinition.InitSimulator(sim);

            var simResult = Result.Exception;
            SimulationException simException = null;

            try {
                simResult = sim.Run();
            }
            catch (SimulationException e) {
                simException = e;
            }

            return(new FaultResult {
                Fault = faultDefinition, Result = simResult, Exception = simException
            });
        }