MudassarRasool / mb-unit

Automatically exported from code.google.com/p/mb-unit
0 stars 0 forks source link

Icarus throws System.ArgumentOutOfRangeException when swopping projects #808

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Save an icarus project with no tests checked (ProjectA).
2. Check one test.
3. Save the project to a different name (ProjectB)
4. Open ProectA

What is the expected output? What do you see instead?

System.ArgumentOutOfRangeException: Total work units must be finite and 
positive or NaN.
Parameter name: totalWorkUnits
Actual value was 0.
ActualValue: 0
ParamName: totalWorkUnits
   at Gallio.Runtime.ProgressMonitoring.ObservableProgressMonitor.BeginTask(String taskName, Double totalWorkUnits) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Runtime\ProgressMonitoring\ObservableProgressMonitor.cs:line 222
   at Gallio.Icarus.Commands.RestoreFilterCommand.Execute(IProgressMonitor progressMonitor)
   at Gallio.Icarus.Commands.OpenProjectCommand.Execute(IProgressMonitor progressMonitor)
Reported by: 
UnhandledExceptionPolicy
   at Gallio.Common.Policies.EventHandlerPolicy.SafeInvoke[T](EventHandler`1 handlerChain, Object sender, T e) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Common\Policies\EventHandlerPolicy.cs:line 69
   at Gallio.Common.Concurrency.Task.NotifyTerminated(TaskResult result) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Common\Concurrency\Task.cs:line 305
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

Please use labels and text to provide additional information.
Icarus 3.2 build 517

Original issue reported on code.google.com by Jonathan...@gmail.com on 5 Feb 2011 at 8:39

GoogleCodeExporter commented 8 years ago
Already fixed in the trunk (r2786). Should have been merged back to 3.2 in the 
last frenzy.

Original comment by grahamr...@gmail.com on 26 Feb 2011 at 1:29

GoogleCodeExporter commented 8 years ago

Original comment by grahamr...@gmail.com on 26 Feb 2011 at 1:30