Exemplo n.º 1
0
 public CoverageTask(NUnitTask nunit, DevenvTask task, ICoverage instrument)
 {
     _nunit      = nunit;
     _builder    = task;
     _instrument = instrument;
 }
Exemplo n.º 2
0
        public void DefaultVisualStudioShouldBe2010IfNothingNewerInstalled()
        {
            IMock mockRegistry2 = new DynamicMock(typeof(IRegistry));

            DevenvTask task2 = new DevenvTask((IRegistry)mockRegistry2.MockInstance, (ProcessExecutor)mockProcessExecutor.MockInstance);
            mockRegistry2.ExpectAndReturn("GetLocalMachineSubKeyValue", null, DevenvTask.VS2013_REGISTRY_PATH, DevenvTask.VS_REGISTRY_KEY);
            mockRegistry2.ExpectAndReturn("GetLocalMachineSubKeyValue", null, DevenvTask.VS2012_REGISTRY_PATH, DevenvTask.VS_REGISTRY_KEY);
            mockRegistry2.ExpectAndReturn("GetLocalMachineSubKeyValue", DEVENV_2010_PATH,DevenvTask.VS2010_REGISTRY_PATH, DevenvTask.VS_REGISTRY_KEY);

            Assert.AreEqual(DEVENV_2010_PATH + "devenv.com", task2.Executable);
            mockRegistry2.Verify();
            mockProcessExecutor.Verify();
        }
Exemplo n.º 3
0
		public void SelectVisualStudio2002ExplicitlyUsingVersionNameWhenEverythingInstalled()
		{
			IMock mockRegistry2 = new DynamicMock(typeof(IRegistry));

			DevenvTask task2 = new DevenvTask((IRegistry)mockRegistry2.MockInstance, (ProcessExecutor)mockProcessExecutor.MockInstance);
			mockRegistry2.ExpectAndReturn("GetExpectedLocalMachineSubKeyValue", DEVENV_2002_PATH,
										 DevenvTask.VS2002_REGISTRY_PATH, DevenvTask.VS_REGISTRY_KEY);

			task2.Version = "VS2002";

			Assert.AreEqual(DEVENV_2002_PATH + "devenv.com", task2.Executable);
			mockRegistry2.Verify();
			mockProcessExecutor.Verify();
		}
Exemplo n.º 4
0
		public void Setup()
		{
			mockRegistry = new DynamicMock(typeof (IRegistry));
			CreateProcessExecutorMock(DEVENV_PATH);
			task = new DevenvTask((IRegistry) mockRegistry.MockInstance, (ProcessExecutor) mockProcessExecutor.MockInstance);
		}
Exemplo n.º 5
0
 public CoverageTask(NUnitTask nunit, DevenvTask task, ICoverage instrument)
 {
     _nunit = nunit;
     _builder = task;
     _instrument = instrument;
 }