private void VerifyRDPExtension() { vmPowershellCmdlets.GetAzureRemoteDesktopFile(vmName, serviceName, rdpPath, false); using (StreamReader stream = new StreamReader(rdpPath)) { string firstLine = stream.ReadLine(); dns = Utilities.FindSubstring(firstLine, ':', 2); } Assert.IsTrue((Utilities.RDPtestIaaS(dns, 0, vmAccessUserName, vmAccessPassword, true)), "Cannot RDP to the instance!!"); }
private void ValidateLogin(string dns, int port, string vmAccessUserName, string vmAccessPassword) { Assert.IsTrue((Utilities.RDPtestIaaS(dns, port, vmAccessUserName, vmAccessPassword, true)), "Cannot RDP to the instance!!"); }