File tree 3 files changed +8
-2
lines changed
3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 28
28
29
29
<PropertyGroup Condition =" '$(Configuration)|$(Platform)'=='Debug|AnyCPU'" >
30
30
<DebugType >portable</DebugType >
31
+ <NoWarn >1701;1702;NU1701;CS8002;CS8618;CS8622</NoWarn >
31
32
</PropertyGroup >
32
33
33
34
<PropertyGroup Condition =" '$(Configuration)|$(Platform)'=='Release|AnyCPU'" >
34
35
<DebugType >none</DebugType >
36
+ <NoWarn >1701;1702;NU1701;CS8002;CS8618;CS8622</NoWarn >
35
37
</PropertyGroup >
36
38
37
39
<ItemGroup >
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ public string Executable
112
112
}
113
113
}
114
114
115
- public string ArmaPath => Path . GetDirectoryName ( _executable ) ;
115
+ public string ArmaPath => Path . GetDirectoryName ( _executable ) ?? string . Empty ;
116
116
117
117
public int Port
118
118
{
Original file line number Diff line number Diff line change 1
1
using NUnit . Framework ;
2
2
3
+ using System . Runtime . Versioning ;
4
+
3
5
namespace FASTER . Models . Tests
4
6
{
5
7
[ TestFixture ( ) ]
6
8
public class EncryptionTests
7
9
{
10
+ [ SupportedOSPlatform ( "windows7.0" ) ]
8
11
[ Test ( ) ]
9
12
public void EncryptDataTest ( )
10
13
{
11
14
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" ) ) ;
13
16
}
14
17
18
+ [ SupportedOSPlatform ( "windows7.0" ) ]
15
19
[ Test ( ) ]
16
20
public void DecryptDataTest ( )
17
21
{
You can’t perform that action at this time.
0 commit comments