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