Add a test fixture that is Squirrel-aware

This EXE just writes its arguments to a file in the same directory called
"args.txt"
This commit is contained in:
Paul Betts
2014-08-20 16:37:44 -07:00
parent b5b4472d3a
commit af63bdbbb1
2 changed files with 9 additions and 0 deletions

View File

@@ -49,5 +49,14 @@ namespace Squirrel.Tests
var ret = SquirrelAwareExecutableDetector.GetPESquirrelAwareVersion(target); var ret = SquirrelAwareExecutableDetector.GetPESquirrelAwareVersion(target);
Assert.Null(ret); Assert.Null(ret);
} }
[Fact]
public void SquirrelAwareTestAppShouldBeSquirrelAware()
{
var target = IntegrationTestHelper.GetPath("fixtures", "SquirrelAwareApp.exe");
Assert.True(File.Exists(target));
Assert.NotNull(SquirrelAwareExecutableDetector.GetPESquirrelAwareVersion(target));
}
} }
} }

BIN
test/fixtures/SquirrelAwareApp.exe vendored Normal file

Binary file not shown.