public void GetDeviceByNameCaseSensitiveTest() { string name = RasDeviceTest.ValidDeviceName; RasDeviceType deviceType = RasDeviceType.Vpn; RasDevice expected = RasDevice.Create(name, deviceType); RasDevice actual = RasDevice.GetDeviceByName(name, deviceType, true); RasDeviceComparer comparer = new RasDeviceComparer(); bool target = comparer.Compare(expected, actual) == 0; Assert.IsTrue(target); }
public void GetDeviceByName1TestWithExactMatchOnly() { string name = RasDeviceTest.ValidDeviceName; RasDeviceType deviceType = RasDeviceType.Vpn; bool exactMatchOnly = true; RasDevice expected = RasDevice.Create(name, deviceType); RasDevice actual; actual = RasDevice.GetDeviceByName(name, deviceType, exactMatchOnly); RasDeviceComparer comparer = new RasDeviceComparer(); bool target = comparer.Compare(expected, actual) == 0; Assert.IsTrue(target); }