public void DeviceLocator_Notifications_StartListeningThrowsIfDisposed() { var deviceLocator = new MockDeviceLocator(); deviceLocator.Dispose(); deviceLocator.StartListeningForNotifications(); }
public void DeviceLocator_SearchAsync_AllowsZeroSearchTime() { var server = new MockCommsServer(); var deviceLocator = new MockDeviceLocator(server); string searchTarget = "ssdp:all"; var t = deviceLocator.SearchAsync(searchTarget, TimeSpan.Zero); t.GetAwaiter().GetResult(); server.Dispose(); deviceLocator.Dispose(); }
public void DeviceLocator_SearchAsync_AllowsZeroSearchTime() { var server = new MockCommsServer(); var deviceLocator = new MockDeviceLocator(server); string searchTarget = "ssdp:all"; var t = deviceLocator.SearchAsync(searchTarget, TimeSpan.Zero); t.GetAwaiter().GetResult(); server.Dispose(); deviceLocator.Dispose(); }
public void DeviceLocator_Notifications_StartListeningThrowsIfDisposed() { var deviceLocator = new MockDeviceLocator(); deviceLocator.Dispose(); deviceLocator.StartListeningForNotifications(); }