//[InlineData("123456789012", "12-34-56-78-90-12")] //not implemented yet public void NormalizeMacAddress(string input, string expected) { WDSDeviceRepository repo = new WDSDeviceRepository(validConfig); Assert.Equal(expected, repo.NormalizeMacAddress(input)); }
public void GetDeviceById_InvalidInputs_ShouldThrow(string id) { WDSDeviceRepository repo = new WDSDeviceRepository(validConfig); Assert.Throws <DeviceNotFoundException>(() => repo.GetDeviceById(id)); }
public void GetDeviceById_ValidInputs_ReturnsCorrectResult(string id, string name) { WDSDeviceRepository repo = new WDSDeviceRepository(validConfig); Assert.Equal(name, repo.GetDeviceById(id)["WDS.Device.Name"]); }