phuccaoca123 / mb-unit

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

Allow Gallio components to be used stand-alone without a runtime. #77

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It can happen that someone wants to use the MbUnit framework outside of the
MbUnit test runner.  When this happens, the Runtime.Instance properly will
return null and most functionality will be inaccessible.

The solution is to bundle in a default mock implementation of a Runtime
that is used when the runtime has not been configured.  That way
Runtime.Instance never returns null.

Obviously some features still won't work.  For example, we'd probably be
limited to using a single context, the RootContext.  Likewise test steps
obviously wouldn't be supported.  Runtime reflection information would be
limited or perhaps not present (Context.Test might return a stub or a null
object.)

Original issue reported on code.google.com by jeff.br...@gmail.com on 3 Oct 2007 at 12:53

GoogleCodeExporter commented 9 years ago
Gallio could provide a mock IRuntime with default services where supported.

Original comment by jeff.br...@gmail.com on 30 Oct 2007 at 2:27

GoogleCodeExporter commented 9 years ago

Original comment by jeff.br...@gmail.com on 10 Jan 2008 at 10:24