Exemplo n.º 1
0
        public void GetDeviceByNameCaseSensitiveTest()
        {
            string        name       = RasDeviceTest.ValidDeviceName;
            RasDeviceType deviceType = RasDeviceType.Vpn;

            RasDevice expected = RasDevice.Create(name, deviceType);
            RasDevice actual   = RasDevice.GetDeviceByName(name, deviceType, true);

            RasDeviceComparer comparer = new RasDeviceComparer();
            bool target = comparer.Compare(expected, actual) == 0;

            Assert.IsTrue(target);
        }
Exemplo n.º 2
0
        public void GetDeviceByName1TestWithExactMatchOnly()
        {
            string        name           = RasDeviceTest.ValidDeviceName;
            RasDeviceType deviceType     = RasDeviceType.Vpn;
            bool          exactMatchOnly = true;

            RasDevice expected = RasDevice.Create(name, deviceType);

            RasDevice actual;

            actual = RasDevice.GetDeviceByName(name, deviceType, exactMatchOnly);

            RasDeviceComparer comparer = new RasDeviceComparer();
            bool target = comparer.Compare(expected, actual) == 0;

            Assert.IsTrue(target);
        }
Exemplo n.º 3
0
        public void GetDeviceByName1TestWithExactMatchOnly()
        {
            string name = RasDeviceTest.ValidDeviceName;
            RasDeviceType deviceType = RasDeviceType.Vpn;
            bool exactMatchOnly = true;

            RasDevice expected = RasDevice.Create(name, deviceType);

            RasDevice actual;
            actual = RasDevice.GetDeviceByName(name, deviceType, exactMatchOnly);

            RasDeviceComparer comparer = new RasDeviceComparer();
            bool target = comparer.Compare(expected, actual) == 0;

            Assert.IsTrue(target);
        }
Exemplo n.º 4
0
        public void GetDeviceByNameCaseSensitiveTest()
        {
            string name = RasDeviceTest.ValidDeviceName;
            RasDeviceType deviceType = RasDeviceType.Vpn;

            RasDevice expected = RasDevice.Create(name, deviceType);
            RasDevice actual = RasDevice.GetDeviceByName(name, deviceType, true);

            RasDeviceComparer comparer = new RasDeviceComparer();
            bool target = comparer.Compare(expected, actual) == 0;

            Assert.IsTrue(target);
        }