aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.UnitTesting/Helper.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2019-01-09 16:41:18 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2019-01-09 16:41:18 +0200
commita15947f35cc602d26cf3f51a5c76b6ada939ea12 (patch)
tree0dbd6c979324bb0714f5dd16df05f9290dac867d /Software/Visual_Studio/Tango.UnitTesting/Helper.cs
parentaeebb8d47e1d78b50d9ae5afd9df6eaf9765ed87 (diff)
downloadTango-a15947f35cc602d26cf3f51a5c76b6ada939ea12.tar.gz
Tango-a15947f35cc602d26cf3f51a5c76b6ada939ea12.zip
Implemented job upload using JobDescriptionFile.
Diffstat (limited to 'Software/Visual_Studio/Tango.UnitTesting/Helper.cs')
-rw-r--r--Software/Visual_Studio/Tango.UnitTesting/Helper.cs15
1 files changed, 14 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.UnitTesting/Helper.cs b/Software/Visual_Studio/Tango.UnitTesting/Helper.cs
index ae7636c7b..6a4f860b9 100644
--- a/Software/Visual_Studio/Tango.UnitTesting/Helper.cs
+++ b/Software/Visual_Studio/Tango.UnitTesting/Helper.cs
@@ -7,6 +7,8 @@ using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
using Tango.Logging;
+using DeepEqual;
+using DeepEqual.Syntax;
namespace Tango.UnitTesting
{
@@ -66,7 +68,7 @@ namespace Tango.UnitTesting
/// </summary>
public static ConsoleLogger InitializeLogging(bool useConsole = false, [CallerMemberName] string testName = null)
{
- LogManager.Default.RegisterLogger(new FileLogger(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Twine", "Tango", "logs", "Unit Testing"),"Unit_Testing"));
+ LogManager.Default.RegisterLogger(new FileLogger(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Twine", "Tango", "logs", "Unit Testing"), "Unit_Testing"));
if (useConsole)
{
var consoleLogger = new ConsoleLogger(testName);
@@ -125,5 +127,16 @@ namespace Tango.UnitTesting
{
Process.Start("explorer.exe", string.Format("/select,\"{0}\"", path));
}
+
+ /// <summary>
+ /// Returns true if the two objects are equal by using deep equal.
+ /// </summary>
+ /// <param name="obj1">First object.</param>
+ /// <param name="obj2">Second object.</param>
+ /// <returns></returns>
+ public static bool IsDeepEqual(Object obj1, Object obj2)
+ {
+ return obj1.IsDeepEqual(obj2);
+ }
}
}