public void Should_assign_signature_to_proper_file()
{
var tested = new StorageSignatureRepository(transactionalStorage, "test.bin");
using(var sigContent = tested.CreateContent("test.bin.0.sig"))
{
sigContent.WriteByte(3);
}
tested.Flush(new[] { SignatureInfo.Parse("test.bin.0.sig") } );
var result = tested.GetByName("test.bin.0.sig");
Assert.Equal("test.bin.0.sig", result.Name);
Assert.Equal(1, result.Length);
}