Esempio n. 1
0
            protected override void Given()
            {
                this.domain1 = new DisposableDomain();
                this.domain2 = new DisposableDomain();

                var initialManifest = EventSource.GenerateManifest(typeof(MyNewCompanyEventSource), null);
                this.sourceSettings = new EventSourceSettings(EventSource.GetName(typeof(MyNewCompanyEventSource)));                               
                base.Given();

                // We expect 2 events
                this.inMemoryListener.WaitSignalCondition = () => inMemoryListener.EventWrittenCount == 2;

                this.Sut.Start();
            }
            protected override void Given()
            {
                this.domain1 = new DisposableDomain();
                this.domain2 = new DisposableDomain();
                this.sourceSettings = new EventSourceSettings(EventSource.GetName(typeof(LargeManifestEventSource)));

                base.Given();

                // We expect 2 events
                this.inMemoryListener.WaitSignalCondition = () => inMemoryListener.EventWrittenCount == 2;

                this.sut.Start();
            }
 public void then_all_custom_implementations_should_be_loaded()
 {
     using (var domain = new DisposableDomain())
     {
         domain.DoCallBack(() =>
         {
             var sut = new ExtensionsLoader();
             Assert.IsTrue(sut.FormatterElements.Any(s => s.Value.GetType().FullName == "Test.TestFormatterElement"));
         });
     }
 }