(string name, long size, string sha1)
| 48 | } |
| 49 | |
| 50 | [Theory] |
| 51 | [InlineData("Squirrel.Core.1.0.0.0.nupkg", 4457, "75255cfd229a1ed1447abe1104f5635e69975d30")] |
| 52 | [InlineData("Squirrel.Core.1.1.0.0.nupkg", 15830, "9baf1dbacb09940086c8c62d9a9dbe69fe1f7593")] |
| 53 | public void GenerateFromFileTest(string name, long size, string sha1) |
| 54 | { |
| 55 | var path = IntegrationTestHelper.GetPath("fixtures", name); |
| 56 | |
| 57 | using (var f = File.OpenRead(path)) { |
| 58 | var fixture = ReleaseEntry.GenerateFromFile(f, "dontcare"); |
| 59 | Assert.Equal(size, fixture.Filesize); |
| 60 | Assert.Equal(sha1, fixture.SHA1.ToLowerInvariant()); |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | [Theory] |
| 65 | [InlineData("0000000000000000000000000000000000000000 MyCoolApp-1.2.nupkg 123", 1, 2, 0, 0, "", false)] |
nothing calls this directly
no test coverage detected