public void ConvertToPPPoETest() { var expected = NativeMethods.RASDT_PPPoE; var target = new RasDeviceTypeConverter(); var actual = (string)target.ConvertTo(RasDeviceType.PPPoE, typeof(string)); Assert.AreEqual(expected, actual); }
public void ConvertToFrameRelayTest() { string expected = NativeMethods.RASDT_FrameRelay; RasDeviceTypeConverter target = new RasDeviceTypeConverter(); string actual = (string)target.ConvertTo(RasDeviceType.FrameRelay, typeof(string)); Assert.AreEqual(expected, actual); }
public void ConvertToParallelTest() { string expected = NativeMethods.RASDT_Parallel; RasDeviceTypeConverter target = new RasDeviceTypeConverter(); string actual = (string)target.ConvertTo(RasDeviceType.Parallel, typeof(string)); Assert.AreEqual(expected, actual); }
public void ConvertToGenericTest() { string expected = NativeMethods.RASDT_Generic; RasDeviceTypeConverter target = new RasDeviceTypeConverter(); string actual = (string)target.ConvertTo(RasDeviceType.Generic, typeof(string)); Assert.AreEqual(expected, actual); }
public void ConvertToObjectTest() { var target = new RasDeviceTypeConverter(); target.ConvertTo(RasDeviceType.Modem, typeof(object)); }