コード例 #1
0
    	public string test_UnInstallation_Process()
    	{
    		var fiddler = new API_Fiddler(); 
    		Assert.That(fiddler.isInstalled(), "Fiddler was NOT installed");
			fiddler.unInstall();
    		Assert.That(fiddler.isInstalled().isFalse(), "After uninstall, Fiddler should not be there anymore");
    		return "ok - test_UnInstall";
    	}
コード例 #2
0
    	public string test_Installation_Process()
    	{
    		var fiddler = new API_Fiddler();   
    		if (fiddler.isInstalled())
    		{    		
    			"[UnitTest_API_Fiddler] Fiddler is already installed, so need to uninstalled first".info();
    			test_UnInstallation_Process();
    		}
    		    		
    		fiddler.install();
			Assert.That(fiddler.isInstalled(), "After installation process, could not detect installation");    		 		
    		return "ok - test_Install";
    	}