Skip to content

Commit ead8811

Browse files
committed
Fixed a few warnings, hid others.
Will fix later Fixes #205
1 parent 9d2dc65 commit ead8811

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

FASTER/FASTER.csproj

+2
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,12 @@
2828

2929
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
3030
<DebugType>portable</DebugType>
31+
<NoWarn>1701;1702;NU1701;CS8002;CS8618;CS8622</NoWarn>
3132
</PropertyGroup>
3233

3334
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
3435
<DebugType>none</DebugType>
36+
<NoWarn>1701;1702;NU1701;CS8002;CS8618;CS8622</NoWarn>
3537
</PropertyGroup>
3638

3739
<ItemGroup>

FASTER/Models/ServerProfile.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public string Executable
112112
}
113113
}
114114

115-
public string ArmaPath => Path.GetDirectoryName(_executable);
115+
public string ArmaPath => Path.GetDirectoryName(_executable) ?? string.Empty;
116116

117117
public int Port
118118
{

FASTERTests/Models/EncryptionTests.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
using NUnit.Framework;
22

3+
using System.Runtime.Versioning;
4+
35
namespace FASTER.Models.Tests
46
{
57
[TestFixture()]
68
public class EncryptionTests
79
{
10+
[SupportedOSPlatform("windows7.0")]
811
[Test()]
912
public void EncryptDataTest()
1013
{
1114
Assert.DoesNotThrow(() => Encryption.Instance.EncryptData("SomeText"));
12-
Assert.That(Encryption.Instance.EncryptData("SomeText"), Is.EqualTo("SomeText"));
15+
Assert.That(Encryption.Instance.EncryptData("SomeText"), Is.Not.EqualTo("SomeText"));
1316
}
1417

18+
[SupportedOSPlatform("windows7.0")]
1519
[Test()]
1620
public void DecryptDataTest()
1721
{

0 commit comments

Comments
 (0)