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

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

            LooseFunc <int, int, int> .Register();
        }
예제 #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();
        }
예제 #5
0
 public void FixtureTearDown()
 {
     LooseStopwatch.Holder.Source = null;
     LooseStopwatch.Unload();
     LooseCrossDomainAccessor.Clear();
 }
예제 #6
0
 public void TearDown()
 {
     InstanceGetters.NewAdditionalDelegatesAssemblyRepository = null;
     InstanceGetters.NewIndirectionAssemblyRepository         = null;
     LooseCrossDomainAccessor.Clear();
 }
예제 #7
0
 public void SetUp()
 {
     LooseCrossDomainAccessor.Clear();
     InstanceGetters.NewIndirectionAssemblyRepository         = () => new MockIndirectionAssemblyRepository();
     InstanceGetters.NewAdditionalDelegatesAssemblyRepository = () => new MockAdditionalDelegatesAssemblyRepository();
 }