コード例 #1
0
        public void IsSigned()
        {
            ManifestMock.Setup(m => m.Signature).Returns(new PackageManifestSignature());

            FileInfo       file = new FileInfo(Path.Combine(Temp, "archive.zip"));
            PackageArchive test = new PackageArchive(file, ManifestMock.Object);

            Assert.Equal(true, test.IsSigned);
            Assert.Equal(false, test.HasTrust);
        }
コード例 #2
0
 /// <summary>
 ///     Configures the mockups for the unit tests.
 /// </summary>
 private void SetupMocks()
 {
     ManifestMock.Setup(m => m.Name).Returns("Test");
     ManifestMock.Setup(m => m.Namespace).Returns("OpenIIoT.Tests");
 }