Ejemplo n.º 1
0
        public void Mapper_Build_Test_V12_Should_Succeed()
        {
            MapperBuildTask mapper = new MapperBuildTask
            {
                Assembly        = AssemblyModelLocation,
                VisualStudioVer = VsVersion12
            };

            bool result = mapper.Execute();

            Assert.IsTrue(result, "Mapper Build Task Execute return false.");
            Assert.IsTrue(File.Exists(Path.Combine(TargetInstallationPath(VsVersion12), TargetAssemblyName(VsVersion12))), $"Custom Debugger Visualizer {TargetAssemblyName(VsVersion12)} hasn't been created");
            Assert.IsTrue(File.Exists(Path.Combine(TargetInstallationPath(VsVersion12), DotNetAssemblyName(VsVersion12))), $"DotNet Debugger Visualizer {DotNetAssemblyName(VsVersion12)} hasn't been created ");
        }
Ejemplo n.º 2
0
        public void Mapper_Build_Test_V11_Should_Succeed()
        {
            MapperBuildTask mapper = new MapperBuildTask
            {
                Assembly        = AssemblyModelLocation,
                VisualStudioVer = VsVersion11,
                BuildEngine     = Isolate.Fake.Instance <IBuildEngine>(Members.ReturnRecursiveFakes)
            };

            bool result = mapper.Execute();

            Assert.IsTrue(result, "Mapper Build Task Execute return false.");
            Assert.IsTrue(FS.FileSystem.File.Exists(Path.Combine(TargetInstallationPath(VsVersion11), TargetAssemblyName(VsVersion11))), $"Custom Debugger Visualizer {TargetAssemblyName(VsVersion11)} hasn't been created");
            Assert.IsTrue(FS.FileSystem.File.Exists(Path.Combine(TargetInstallationPath(VsVersion11), DotNetAssemblyName(VsVersion11))), $"DotNet Debugger Visualizer {DotNetAssemblyName(VsVersion11)} hasn't been created ");
        }