public void CanConvertToStringTest() { var expected = true; var target = new RasDeviceTypeConverter(); var actual = target.CanConvertTo(typeof(string)); Assert.AreEqual(expected, actual); }
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 CanConvertFromObjectTest() { var expected = false; var target = new RasDeviceTypeConverter(); var actual = target.CanConvertFrom(typeof(object)); Assert.AreEqual(expected, actual); }
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 CanConvertFromStringTest() { bool expected = true; RasDeviceTypeConverter target = new RasDeviceTypeConverter(); bool actual = target.CanConvertFrom(typeof(string)); 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 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 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 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 ConvertFromParallelTest() { RasDeviceType expected = RasDeviceType.Parallel; RasDeviceTypeConverter target = new RasDeviceTypeConverter(); RasDeviceType actual = (RasDeviceType)target.ConvertFromString(NativeMethods.RASDT_Parallel); Assert.AreEqual <RasDeviceType>(expected, actual); }
public void CanConvertToObjectTest() { bool expected = false; RasDeviceTypeConverter target = new RasDeviceTypeConverter(); bool actual = target.CanConvertTo(typeof(object)); Assert.AreEqual(expected, actual); }
public void ConvertToObjectTest() { var target = new RasDeviceTypeConverter(); target.ConvertTo(RasDeviceType.Modem, typeof(object)); }
public void ConvertFromInvalidStringTest() { var target = new RasDeviceTypeConverter(); target.ConvertFromString(" "); }
public void ConvertFromObjectTest() { var target = new RasDeviceTypeConverter(); var actual = target.ConvertFrom(new object()); }