Пример #1
0
        public void RefreshModelsListTest()
        {
            // Open known model
            _powerSHAPE.Models.CreateModelFromFile(new File(TestFiles.LEVELS_MODEL));

            // Get the number of models
            var icount = _powerSHAPE.Models.Count;

            // Create a new model with the old method to simulate a model imported/created manually
            _powerSHAPE.Execute("FILE NEW");

            // Refresh the list of models
            _powerSHAPE.RefreshWindowsAndModelsList();

            // Check the number of models
            Assert.That(icount + 1, Is.EqualTo(_powerSHAPE.Models.Count));
        }