这仅在使用mspec.exe
. 它们在 ReSharper 的测试运行器中运行良好。Establish
andBecause
语句执行,然后在到达第一条语句后立即出现下面的异常It
。
System.Runtime.Remoting.RemotingException occurred
Message=Requested Service not found
Source=System.Runtime.Remoting
StackTrace:
Server stack trace:
at System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage (IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Machine.Specifications.Runner.ISpecificationRunListener.OnSpecificationStart(SpecificationInfo specification)
at Machine.Specifications.Runner.Impl.AggregateRunListener.<>c__DisplayClass11.<OnSpecificationStart>b__10(ISpecificationRunListener listener) in c:\OLDMSPEC\machine-machine.specifications-98b543c\Source\Machine.Specifications\Runner\Impl\AggregateRunListener.cs:line 49
我尝试了这里所说的,但没有成功:Spec 在由 mspec.exe 运行时失败,但在 TD.NET 运行时通过
我想要一些一般性的想法,因为代码分为很多类并且有很多步骤,所以我很难提供示例代码。