public void SaveDevice_TestMethod() { IDeviceConfiguration configuration = new ConfigurationSettings(); var webCam = new HWDeviceDesciption() { Device = DeviceType.WebCam, DeviceId = "camera id custom", Name = "camera name custom" }; configuration.SaveDevice(webCam); var savedWebCam = configuration.GetDevice(DeviceType.WebCam); Assert.AreEqual(savedWebCam.Device, webCam.Device); Assert.AreEqual(savedWebCam.DeviceId, webCam.DeviceId); Assert.AreEqual(savedWebCam.Name, webCam.Name); Assert.AreEqual(savedWebCam.IsSet, webCam.IsSet); }