Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

Commit

Permalink
Fixes for two Windows tests and disable one test
Browse files Browse the repository at this point in the history
  • Loading branch information
John Kordich committed Jun 24, 2016
1 parent 5ae9c82 commit ab2763f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,10 @@ public void Deserialization_CimClass_GarbageBuffer()
});
}

[Fact]
[TDDFact]
public void Deserialization_CimClasse_InvalidMofBuffer()
{
Assert.Throws<ArgumentNullException>(() =>
Assert.Throws<CimException>(() =>
{
const int size = 1024;
uint offset = 0;
Expand Down Expand Up @@ -336,7 +336,7 @@ public void Deserialization_CimClass_DSCMof()
string c5 = "MSFT_ConfigurationDocument";
uint offset = 0;
#if !_LINUX
byte[] buffer = Helpers.GetBytesFromFile(@"..\..\TestData\dscschema.mof");
byte[] buffer = Helpers.GetBytesFromFile(@"..\..\..\..\..\test\Microsoft.Management.Infrastructure.Tests\UnitTests\TestData\dscschema.mof");
#else
byte[] buffer = Helpers.GetBytesFromFile(@"test/Microsoft.Management.Infrastructure.Tests/UnitTests/TestData/dscschema.mof");
#endif
Expand Down Expand Up @@ -534,7 +534,7 @@ public void Deserialization_CimClass_MintMof()
{
uint offset = 0;
#if !_LINUX
byte[] buffer = GetFileContent(@"..\..\TestDataq\mintschema.mof");
byte[] buffer = Helpers.GetBytesFromFile(@"..\..\..\..\..\test\Microsoft.Management.Infrastructure.Tests\UnitTests\TestData\mintschema.mof");
#else
byte[] buffer = Helpers.GetBytesFromFile(@"test/Microsoft.Management.Infrastructure.Tests/UnitTests/TestData/mintschema.mof");
#endif
Expand Down

0 comments on commit ab2763f

Please sign in to comment.