public void ConvertFromPPPoETest() { var expected = RasDeviceType.PPPoE; var target = new RasDeviceTypeConverter(); var actual = (RasDeviceType)target.ConvertFromString(NativeMethods.RASDT_PPPoE); Assert.AreEqual(expected, actual); }
public void ConvertFromFrameRelayTest() { var expected = RasDeviceType.FrameRelay; var target = new RasDeviceTypeConverter(); var actual = (RasDeviceType)target.ConvertFromString(NativeMethods.RASDT_FrameRelay); Assert.AreEqual(expected, actual); }
public void ConvertFromParallelTest() { RasDeviceType expected = RasDeviceType.Parallel; RasDeviceTypeConverter target = new RasDeviceTypeConverter(); RasDeviceType actual = (RasDeviceType)target.ConvertFromString(NativeMethods.RASDT_Parallel); Assert.AreEqual <RasDeviceType>(expected, actual); }
public void ConvertFromInvalidStringTest() { var target = new RasDeviceTypeConverter(); target.ConvertFromString(" "); }