public void CanConvertFromObjectTest()
        {
            bool expected = false;

            RasDeviceTypeConverter target = new RasDeviceTypeConverter();
            bool actual = target.CanConvertFrom(typeof(object));

            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 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 ConvertToPPPoETest()
        {
            string expected = NativeMethods.RASDT_PPPoE;

            RasDeviceTypeConverter target = new RasDeviceTypeConverter();
            string actual = (string)target.ConvertTo(RasDeviceType.PPPoE, typeof(string));

            Assert.AreEqual(expected, actual);
        }
 public void ConvertToObjectTest()
 {
     RasDeviceTypeConverter target = new RasDeviceTypeConverter();
     target.ConvertTo(RasDeviceType.Modem, typeof(object));
 }
        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 ConvertFromFrameRelayTest()
        {
            RasDeviceType expected = RasDeviceType.FrameRelay;

            RasDeviceTypeConverter target = new RasDeviceTypeConverter();
            RasDeviceType actual = (RasDeviceType)target.ConvertFromString(NativeMethods.RASDT_FrameRelay);

            Assert.AreEqual<RasDeviceType>(expected, actual);
        }
 public void ConvertFromInvalidStringTest()
 {
     RasDeviceTypeConverter target = new RasDeviceTypeConverter();
     target.ConvertFromString(" ");
 }
 public void ConvertFromObjectTest()
 {
     RasDeviceTypeConverter target = new RasDeviceTypeConverter();
     object actual = target.ConvertFrom(new object());
 }