public void MapperBuildTaskTest_V10_Should_Succeed() { var mapper = new MapperBuildTask { Assembly = _assemblyModel.Location, VisualStudioVer = "10.0" }; var result = mapper.Execute(); Assert.IsTrue(result, "Mapper Build Task Execute return false."); }
public void Mapper_Build_Test_V11_Should_Succeed() { MapperBuildTask mapper = new MapperBuildTask { Assembly = AssemblyModelLocation, VisualStudioVer = VsVersion11 }; bool result = mapper.Execute(); Assert.IsTrue(result, "Mapper Build Task Execute return false."); Assert.IsTrue(File.Exists(Path.Combine(TargetInstallationPath(VsVersion11), TargetAssemblyName(VsVersion11))), $"Custom Debugger Visualizer {TargetAssemblyName(VsVersion11)} hasn't been created"); Assert.IsTrue(File.Exists(Path.Combine(TargetInstallationPath(VsVersion11), DotNetAssemblyName(VsVersion11))), $"DotNet Debugger Visualizer {DotNetAssemblyName(VsVersion11)} hasn't been created "); }
public void Mapper_Build_Test_V12_Should_Succeed() { MapperBuildTask mapper = new MapperBuildTask { Assembly = AssemblyModelLocation, VisualStudioVer = VsVersion12 }; mapper.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(VsVersion12), TargetAssemblyName(VsVersion12))), $"Custom Debugger Visualizer {TargetAssemblyName(VsVersion12)} hasn't been created"); Assert.IsTrue(FS.FileSystem.File.Exists(Path.Combine(TargetInstallationPath(VsVersion12), DotNetAssemblyName(VsVersion12))), $"DotNet Debugger Visualizer {DotNetAssemblyName(VsVersion12)} hasn't been created "); }