public void ShouldCreateProcessWithDefaultArgumentsIfNoneAreSet()
		{
			// Setup
			P4 p4 = new P4();

			ProcessInfo info = new P4ConfigProcessInfoCreator().CreateProcessInfo(p4, "my arguments");

			Assert.AreEqual("p4", info.FileName);
			Assert.AreEqual("-s my arguments", info.Arguments);
		}
		public void ShouldCreateProcessWithDefaultArgumentsIfOnlyUserIsSet()
		{
			// Setup
			P4 p4 = new P4();
			p4.User = "******";

			ProcessInfo info = new P4ConfigProcessInfoCreator().CreateProcessInfo(p4, "my arguments");

			Assert.AreEqual("p4", info.FileName);
			Assert.AreEqual("-s -u myUser my arguments", info.Arguments);
		}
		public void ShouldCreateProcessUsingAllConfigurationVariablesIfTheyAreSet()
		{
			// Setup
			P4 p4 = new P4();
			p4.Executable = "myExecutable";
			p4.Client = "myClient";
			p4.User = "******";
			p4.Port = "anotherserver:2666";

			ProcessInfo info = new P4ConfigProcessInfoCreator().CreateProcessInfo(p4, "my arguments");

			Assert.AreEqual("myExecutable", info.FileName);
			Assert.AreEqual("-s -c myClient -p anotherserver:2666 -u myUser my arguments", info.Arguments);
		}