Exemplo n.º 1
0
        protected void TestCreateProvider(LibraryPathType iLibraryType, Type iExpectedType, string iErrorMsg)
        {
            ILibraryPathsProvider vProvider = LibraryPathsProviderFactory.CreateProvider(iLibraryType);

            Assert.IsNotNull(vProvider, "Provider was not created. " + iErrorMsg);
            Assert.IsInstanceOf(iExpectedType, vProvider, "Created provider is of wrong type. " + iErrorMsg);
        }
Exemplo n.º 2
0
        public void LoadPreset(LibraryPathType aType)
        {
            ValidateModel();
            ILibraryPathsProvider vProvider = LibraryPathsProviderFactory.CreateProvider(aType);

            Model.LibraryPaths = vProvider.List();
            Model.NotifyObservers();
        }
Exemplo n.º 3
0
 public void CreateProvider_NotSupported_Delphi7()
 {
     LibraryPathsProviderFactory.CreateProvider(LibraryPathType.Delphi7);
 }