diff --git a/Tests/NullGuardTest.cs b/Tests/NullGuardTest.cs index b05c232..dcaace4 100644 --- a/Tests/NullGuardTest.cs +++ b/Tests/NullGuardTest.cs @@ -1,9 +1,9 @@ #if !DEBUG using System; -#endif using Rothko; +#endif using Xunit; -using Xunit.Sdk; +using Environment = Rothko.Environment; namespace Tests { @@ -12,9 +12,7 @@ public class NullGuardTest [Fact] public void MakeSureNullGuardIsWorking() { -#if DEBUG - Assert.Throws(() => new FileInfo(null)); -#else +#if !DEBUG Assert.Throws(() => new FileInfo(null)); #endif } @@ -22,11 +20,11 @@ public void MakeSureNullGuardIsWorking() [Fact] public void CheckOSVersionImplementation() { - Environment env = new Environment(); + var environment = new Environment(); - Assert.NotNull(env.OSVersion.Edition); - Assert.NotNull(env.OSVersion.Name); - Assert.True(env.OSVersion.ToString().Length > 7); + Assert.NotNull(environment.OSVersion.Edition); + Assert.NotNull(environment.OSVersion.Name); + Assert.True(environment.OSVersion.ToString().Length > 7); } } } diff --git a/Tests/Tests.csproj b/Tests/Tests.csproj index a838a47..d897bd6 100644 --- a/Tests/Tests.csproj +++ b/Tests/Tests.csproj @@ -1,5 +1,6 @@  + Debug AnyCPU @@ -13,6 +14,7 @@ v4.5 512 + a85f3fa6 true @@ -41,9 +43,14 @@ - - False - ..\packages\xunit.1.9.2\lib\net20\xunit.dll + + ..\packages\xunit.abstractions.2.0.0-rc4-build2924\lib\net35\xunit.abstractions.dll + + + ..\packages\xunit.assert.2.0.0-rc4-build2924\lib\portable-net45+win+wpa81+wp80+monotouch+monoandroid+Xamarin.iOS\xunit.assert.dll + + + ..\packages\xunit.extensibility.core.2.0.0-rc4-build2924\lib\portable-net45+win+wpa81+wp80+monotouch+monoandroid+Xamarin.iOS\xunit.core.dll @@ -60,6 +67,12 @@ + + + This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + - - - - - \ No newline at end of file diff --git a/src/FodyWeavers.xml b/src/FodyWeavers.xml index 9d96e0a..9321cb9 100644 --- a/src/FodyWeavers.xml +++ b/src/FodyWeavers.xml @@ -1,4 +1,4 @@  - + \ No newline at end of file diff --git a/src/Rothko.csproj b/src/Rothko.csproj index c06d1c6..0aa09a9 100644 --- a/src/Rothko.csproj +++ b/src/Rothko.csproj @@ -12,8 +12,8 @@ Rothko v4.5 512 - ..\packages\Fody.1.19.1.0 + 10c9b3d4 true @@ -44,10 +44,7 @@ - ..\packages\NullGuard.Fody.1.0.0.0\Lib\portable-net4+sl4+wp7+win8+MonoAndroid16+MonoTouch40\NullGuard.dll - ..\..\packages\NullGuard.Fody.1.1.0.0\Lib\portable-net4+sl4+wp7+win8+MonoAndroid16+MonoTouch40\NullGuard.dll - ..\packages\NullGuard.Fody.1.1.0.0\Lib\portable-net4+sl4+wp7+win8+MonoAndroid16+MonoTouch40\NullGuard.dll - False + ..\packages\NullGuard.Fody.1.4.1\Lib\portable-net4+sl4+wp7+win8+MonoAndroid16+MonoTouch40\NullGuard.dll @@ -130,11 +127,16 @@ - - + + + + This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + +