protected void SetUp()
		{
			_executor = new DynamicMock(typeof(ProcessExecutor));
			_historyParser = new DynamicMock(typeof(IHistoryParser));
			_vss = new Vss(new VssLocale(CultureInfo.InvariantCulture), (IHistoryParser) _historyParser.MockInstance, (ProcessExecutor) _executor.MockInstance, null);
			_vss.Executable = "ss.exe";
		}
Esempio n. 2
0
		public void SetUp()
		{
			CreateProcessExecutorMock(DEFAULT_SS_EXE_PATH);
			mockRegistry = new DynamicMock(typeof(IRegistry)); mockProcessExecutor.Strict = true;
			mockRegistry.SetupResult("GetExpectedLocalMachineSubKeyValue", DEFAULT_SS_EXE_PATH, typeof(string), typeof(string));
			VssLocale locale = new VssLocale(CultureInfo.InvariantCulture);
			historyParser = new VssHistoryParser(locale);

			vss = new Vss(locale, historyParser, (ProcessExecutor) mockProcessExecutor.MockInstance, (IRegistry) mockRegistry.MockInstance);
			vss.Project = "$/fooProject";
			vss.Culture = string.Empty; // invariant culture
			vss.Username = "******";
			vss.Password = "******";
			vss.WorkingDirectory = DefaultWorkingDirectory;

			today = DateTime.Now;
			yesterday = today.AddDays(-1);
		}
Esempio n. 3
0
		public void ShouldPopulateWithMinimalConfiguration()
		{
			vss = (Vss) NetReflector.Read("<vss />");
			Assert.AreEqual(Vss.DefaultProject, vss.Project);
		}