re-add version check & adjust CPU target for tests

fixed compliler warning regarding architecture mismatch.
This commit is contained in:
Sean Kaim
2017-01-04 10:47:23 -05:00
parent 0f2b61694d
commit 17ccf40082
2 changed files with 9 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
//using System;
using System;
using mRemoteNG.App.Info;
using mRemoteNG.App.Update;
using NUnit.Framework;
@@ -26,10 +26,10 @@ namespace mRemoteNGTests.App
Assert.That(e.Error, Is.Null);
var CurrentUpdateInfo = UpdateInfo.FromString(e.Result);
Assert.That(CurrentUpdateInfo.CheckIfValid(), Is.True);
//Version v;
//Version.TryParse(GeneralAppInfo.ApplicationVersion, out v);
//var IsNewer = CurrentUpdateInfo.Version > v;
//Assert.That(IsNewer, Is.True);
Version v;
Version.TryParse(GeneralAppInfo.ApplicationVersion, out v);
var IsNewer = CurrentUpdateInfo.Version > v;
Assert.That(IsNewer, Is.True);
}
}
}

View File

@@ -22,7 +22,7 @@
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
@@ -31,7 +31,7 @@
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
@@ -40,7 +40,7 @@
<OutputPath>bin\x86\Debug Portable\</OutputPath>
<DefineConstants>TRACE;DEBUG;PORTABLE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
@@ -49,7 +49,7 @@
<DefineConstants>TRACE;PORTABLE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>