Ejemplo n.º 1
0
        //[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));
        }
Ejemplo n.º 2
0
        public void GetDeviceById_InvalidInputs_ShouldThrow(string id)
        {
            WDSDeviceRepository repo = new WDSDeviceRepository(validConfig);

            Assert.Throws <DeviceNotFoundException>(() => repo.GetDeviceById(id));
        }
Ejemplo n.º 3
0
        public void GetDeviceById_ValidInputs_ReturnsCorrectResult(string id, string name)
        {
            WDSDeviceRepository repo = new WDSDeviceRepository(validConfig);

            Assert.Equal(name, repo.GetDeviceById(id)["WDS.Device.Name"]);
        }