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