GetByName() public method

public GetByName ( string sigName ) : SignatureInfo
sigName string
return SignatureInfo
 public void Should_get_SignatureInfo()
 {
     transactionalStorage.Batch(accessor =>
     {
         accessor.AddSignature("test", 1, stream => stream.Write(new byte[] { 3 }, 0, 1));
     });
     var tested = new StorageSignatureRepository(transactionalStorage, "test");
     var result = tested.GetByName("test.1.sig");
     Assert.Equal("test.1.sig", result.Name);
     Assert.Equal(1, result.Length);
 }
        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);
        }