Skip to content

Commit

Permalink
Fixed a few warnings, hid others.
Browse files Browse the repository at this point in the history
Will fix later
Fixes #205
  • Loading branch information
Foxlider committed Oct 12, 2024
1 parent 9d2dc65 commit ead8811
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions FASTER/FASTER.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@

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

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

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion FASTER/Models/ServerProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public string Executable
}
}

public string ArmaPath => Path.GetDirectoryName(_executable);
public string ArmaPath => Path.GetDirectoryName(_executable) ?? string.Empty;

public int Port
{
Expand Down
6 changes: 5 additions & 1 deletion FASTERTests/Models/EncryptionTests.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
using NUnit.Framework;

using System.Runtime.Versioning;

namespace FASTER.Models.Tests
{
[TestFixture()]
public class EncryptionTests
{
[SupportedOSPlatform("windows7.0")]
[Test()]
public void EncryptDataTest()
{
Assert.DoesNotThrow(() => Encryption.Instance.EncryptData("SomeText"));
Assert.That(Encryption.Instance.EncryptData("SomeText"), Is.EqualTo("SomeText"));
Assert.That(Encryption.Instance.EncryptData("SomeText"), Is.Not.EqualTo("SomeText"));
}

[SupportedOSPlatform("windows7.0")]
[Test()]
public void DecryptDataTest()
{
Expand Down

0 comments on commit ead8811

Please sign in to comment.