public void FirefoxProfile_add_five_extensions() { string[] expected = { "SePSX.dll", "SePSX.dll", "SePSX.dll", "SePSX.dll", "SePSX.dll" }; AddSeFirefoxExtensionCommand cmdlet = WebDriverFactory.Container.Resolve <AddSeFirefoxExtensionCommand>(); //AddSeFirefoxExtensionCommand.UnitTestMode = true; cmdlet.InputObject = //WebDriverFactory.GetFirefoxProfile(); // resolve FirefoxProfile WebDriverFactory.Container.Resolve <FirefoxProfile>(); cmdlet.ExtensionList = expected; SeAddFirefoxExtensionCommand command = new SeAddFirefoxExtensionCommand(cmdlet); command.Execute(); System.Collections.Generic.List <string> listOfArguments = new System.Collections.Generic.List <string>(); listOfArguments.Add(expected[0]); listOfArguments.Add(expected[1]); listOfArguments.Add(expected[2]); listOfArguments.Add(expected[3]); listOfArguments.Add(expected[4]); ReadOnlyCollection <string> expectedList = new ReadOnlyCollection <string>(listOfArguments); //Assert.AreEqual(expectedList, (SePSX.CommonCmdletBase.UnitTestOutput[0] as FirefoxProfile)); // ?? }
protected override void ProcessRecord() { // check input options CheckInputFirefoxProfile(true); // add an extension var command = new SeAddFirefoxExtensionCommand(this); command.Execute(); }
protected override void ProcessRecord() { // check input options CheckInputFirefoxProfile(true); // add an extension var command = new SeAddFirefoxExtensionCommand(this); command.Execute(); }