Inheritance: System.Windows.Forms.Form
Exemplo n.º 1
0
        public void CheckIfITunesLibrary_whenNetworkDrive_correctlyChecksPath()
        {

        	var appFactory = MockRepository.GenerateStub<ITunesAppFactory>();
        	var mockITunes = MockRepository.GenerateStub<iTunesApp>();
        	
        	appFactory.Stub(x => x.GetNewInstance()).Return(mockITunes);
        	
        	mockITunes.Stub(x => x.Version).Return("Test");
        	mockITunes.Stub(x => x.LibraryXMLPath).Return("\\\\networkdrive");
        	
        	MainForm form = new MainForm();
        	form.ITunesAppFactory = appFactory;
        	form.SetITunesInstance();
            Assert.IsFalse(form.CheckIfiTunesLibrary("E:\\"));
            
        }