Пример #1
0
		public void SetUp ()
		{
			descriptor = NWBrowserDescriptor.CreateBonjourService (type, domain);
			using (var parameters = new NWParameters { IncludePeerToPeer = true})
				browser = new NWBrowser (descriptor);
			browser.SetDispatchQueue (DispatchQueue.DefaultGlobalQueue);
		}
Пример #2
0
 public void TestConstructorNullParameters()
 {
     using (var otherBrowser = new NWBrowser(descriptor)) {
         Assert.IsNotNull(otherBrowser.Descriptor, "Descriptor");
         // we expect the default parameters
         Assert.IsNotNull(otherBrowser.Parameters, "Parameters");
     }
 }
Пример #3
0
 public void TestStartNoQ()
 {
     using (var newBrowser = new NWBrowser(descriptor))
         Assert.Throws <InvalidOperationException> (() => newBrowser.Start());
 }