Example #1
0
 public void FixtureSetUp()
 {
     LooseCrossDomainAccessor.Clear();
     LooseStopwatch.Unload();
     LooseStopwatch.Register();
     LooseStopwatch.Holder.Source = new Stopwatch();
 }
Example #2
0
        public void FixtureTearDown()
        {
            LooseFunc <int, int, int> .Holder.Source = null;
            LooseFunc <int, int, int> .Unload();

            LooseCrossDomainAccessor.Clear();
        }
Example #3
0
        public void FixtureSetUp()
        {
            LooseCrossDomainAccessor.Clear();
            LooseFunc <int, int, int> .Unload();

            LooseFunc <int, int, int> .Register();
        }
Example #4
0
        public void FixtureSetUp()
        {
            LooseCrossDomainAccessor.Clear();
            LooseConsole.Unload();
            LooseConsole.Register();
            LooseConsole.Holder.Source = Console.Out;

            // Pre-call to run the action that was registered in this AppDomain,
            // not in other AppDomain but in this AppDomain.
            // Because the event loop that is managed by NUnit GUI - contains calling
            // Write or WriteLine method - runs in other thread.
            Console.Write(string.Empty);
            Console.Out.Flush();
        }
Example #5
0
 public void FixtureTearDown()
 {
     LooseStopwatch.Holder.Source = null;
     LooseStopwatch.Unload();
     LooseCrossDomainAccessor.Clear();
 }
Example #6
0
 public void TearDown()
 {
     InstanceGetters.NewAdditionalDelegatesAssemblyRepository = null;
     InstanceGetters.NewIndirectionAssemblyRepository         = null;
     LooseCrossDomainAccessor.Clear();
 }
Example #7
0
 public void SetUp()
 {
     LooseCrossDomainAccessor.Clear();
     InstanceGetters.NewIndirectionAssemblyRepository         = () => new MockIndirectionAssemblyRepository();
     InstanceGetters.NewAdditionalDelegatesAssemblyRepository = () => new MockAdditionalDelegatesAssemblyRepository();
 }