Esempio n. 1
0
        public void CanConvertToStringTest()
        {
            var expected = true;

            var target = new RasDeviceTypeConverter();
            var actual = target.CanConvertTo(typeof(string));

            Assert.AreEqual(expected, actual);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        public void CanConvertFromObjectTest()
        {
            var expected = false;

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

            Assert.AreEqual(expected, actual);
        }
Esempio n. 4
0
        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);
        }
Esempio n. 6
0
        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);
        }
Esempio n. 12
0
        public void ConvertToObjectTest()
        {
            var target = new RasDeviceTypeConverter();

            target.ConvertTo(RasDeviceType.Modem, typeof(object));
        }
Esempio n. 13
0
        public void ConvertFromInvalidStringTest()
        {
            var target = new RasDeviceTypeConverter();

            target.ConvertFromString(" ");
        }
Esempio n. 14
0
 public void ConvertFromObjectTest()
 {
     var target = new RasDeviceTypeConverter();
     var actual = target.ConvertFrom(new object());
 }