public void ManipulateInMediumDecayWidthVariables() { BackgroundService.SetWorker(WorkerLoader.CreateInstance("InMediumDecayWidth")); BackgroundService.TransferDataToWorker(ParameterSamples.InMediumDecayWidthSamples); AssertHelper.AssertAllElementsEqual( ParameterSamples.InMediumDecayWidthSamples, BackgroundService.GetDataFromWorker()); }
public void ManipulateQQonFireVariables() { BackgroundService.SetWorker(WorkerLoader.CreateInstance("QQonFire")); BackgroundService.TransferDataToWorker(ParameterSamples.QQonFireSamples); AssertHelper.AssertAllElementsEqual( ParameterSamples.QQonFireSamples, BackgroundService.GetDataFromWorker()); }
public void BackgroundServiceJobFailureEvent() { BackgroundService.SetWorker(WorkerLoader.CreateInstance("SingleQQ")); BackgroundService.JobFailure += RegisterJobFailure; BackgroundService.RequestNewJob( "CalculateBoundWaveFunction", new Dictionary <string, string>()); WaitForJobFailure(2000); Assert.IsTrue(HasRegisteredJobFailure); }
public void ProcessParameterFile_SingleQQ() { string lastParameterFile = YburnConfigFile.LastParaFile; WriteTestParaFile(ParameterSamples.SingleQQSamples); BackgroundService.SetWorker(WorkerLoader.CreateInstance("SingleQQ")); BackgroundService.ProcessParameterFile(TestParameterFileName); AssertCorrectProcessing(ParameterSamples.SingleQQSamples); YburnConfigFile.LastParaFile = lastParameterFile; }
public void ProcessParameterFile_InMediumDecayWidth() { string lastParameterFile = YburnConfigFile.LastParaFile; WriteTestParaFile(ParameterSamples.InMediumDecayWidthSamples); BackgroundService.SetWorker(WorkerLoader.CreateInstance("InMediumDecayWidth")); BackgroundService.ProcessParameterFile(TestParameterFileName); AssertCorrectProcessing(ParameterSamples.InMediumDecayWidthSamples); YburnConfigFile.LastParaFile = lastParameterFile; }
public void LoadInMediumDecayWidth() { Assert.IsNotNull(WorkerLoader.CreateInstance("InMediumDecayWidth")); }
public void LoadElectromagnetism() { Assert.IsNotNull(WorkerLoader.CreateInstance("Electromagnetism")); }
public void LoadQQonFire() { Assert.IsNotNull(WorkerLoader.CreateInstance("QQonFire")); }
public void LoadSingleQQ() { Assert.IsNotNull(WorkerLoader.CreateInstance("SingleQQ")); }