Esempio n. 1
0
        public void InstanceNumber()
        {
            int counter = 0;

            foreach (string libraryName in reader.GetAllDllName())
            {
                foreach (string instanceName in reader.GetAllInstancesFromOneDll(libraryName))
                {
                    ++counter;
                }
            }
            int nbInstance = PeripheralFactory.GetAllInstanceNames().Count;

            Assert.Equal(counter, nbInstance);
        }
        public void GetAllDllNameTest()
        {
            ArrayList dl          = reader.GetAllDllName();
            int       numberOfDll = 1;

            Assert.Equal(numberOfDll, dl.Count);

            string dllName = DLL_FOLDER_PATH + "TestDevices";

            Assert.True(dl.Contains(dllName));
        }