jediwhale / fitsharp

Functional testing tools for .NET
http://fitsharp.github.io
Other
152 stars 73 forks source link

Make TextReporter serializable #164

Closed bward closed 4 years ago

bward commented 4 years ago

This change fixes a bug which makes it impossible to actually use RunnerW.

Without this change, the following exception is thrown after clicking 'Go':

System.Runtime.Serialization.SerializationException: Type 'fitSharp.RunnerW.MainForm+TextReporter' in assembly 'RunnerW, Version=2.6.6621.26674, Culture=neutral, PublicKeyToken=null' is not marked as serializable. at System.AppDomain.CreateInstanceAndUnwrap(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at fitSharp.Machine.Application.Shell.RunInNewDomain(AppDomainSetup appDomainSetup) at fitSharp.Machine.Application.Shell.RunInDomain(Memory memory) at fitSharp.Machine.Model.Either2.Select[R](Func2 withLeft, Func2 withRight) at fitSharp.Machine.Application.Shell.Run()

jediwhale commented 4 years ago

Thanks. I'll merge this as soon as I get some free time.