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); }
/// <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"); }