aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.UnitTesting/AdvancedInstaller/AdvancedInstaller_TST.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2019-02-24 19:04:47 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2019-02-24 19:04:47 +0200
commit40746c60fed9e70f3cb7f6f12f55595a77a1adfa (patch)
tree815a77a25888aceed48d15a9ce2f977e0d9ee845 /Software/Visual_Studio/Tango.UnitTesting/AdvancedInstaller/AdvancedInstaller_TST.cs
parent64b768178dc9e64293a52c1b6d2631709af9502a (diff)
downloadTango-40746c60fed9e70f3cb7f6f12f55595a77a1adfa.tar.gz
Tango-40746c60fed9e70f3cb7f6f12f55595a77a1adfa.zip
Fixed PPC and Machine Studio issues before next release.
Started working on Advanced Installer libraries.
Diffstat (limited to 'Software/Visual_Studio/Tango.UnitTesting/AdvancedInstaller/AdvancedInstaller_TST.cs')
-rw-r--r--Software/Visual_Studio/Tango.UnitTesting/AdvancedInstaller/AdvancedInstaller_TST.cs45
1 files changed, 45 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.UnitTesting/AdvancedInstaller/AdvancedInstaller_TST.cs b/Software/Visual_Studio/Tango.UnitTesting/AdvancedInstaller/AdvancedInstaller_TST.cs
new file mode 100644
index 000000000..60a047c0c
--- /dev/null
+++ b/Software/Visual_Studio/Tango.UnitTesting/AdvancedInstaller/AdvancedInstaller_TST.cs
@@ -0,0 +1,45 @@
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using System;
+using System.Collections.Generic;
+using System.Diagnostics;
+using System.IO;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Tango.AdvancedInstaller;
+using Tango.Core.IO;
+
+namespace Tango.UnitTesting.AdvancedInstaller
+{
+ [TestClass]
+ [TestCategory("Advanced Installer")]
+ public class AdvancedInstaller_TST
+ {
+ [TestMethod]
+ public void Set_Version_and_Package_name_And_Build()
+ {
+ InstallerBuilder builder = new InstallerBuilder();
+
+ var demo_project_path = Directory.GetCurrentDirectory() + "\\AdvancedInstaller\\DemoProject";
+ var project_Path = Path.Combine(demo_project_path, "DemoProject.aip");
+ var files_path = Path.Combine(demo_project_path, "Files");
+ var added_file = files_path + "\\addedFile.txt";
+
+ File.WriteAllText(added_file, "Added File!");
+
+ var output_folder = TemporaryManager.Default.CreateFolder();
+
+ builder.ProjectFile = project_Path;
+ builder.OutputFolder = output_folder;
+ builder.ProductName = "TEST TEST TEST";
+ builder.ProductVersion = "2.0.0.0";
+ builder.PackageType = PackageType.MSI;
+
+ builder.Build().Wait();
+
+ File.Delete(added_file);
+
+ output_folder.Display();
+ }
+ }
+}