public void ScanPackageArchives()
        {
            PackageScanner test = new PackageScanner(PlatformManagerMock.Object, PackageFactoryMock.Object);

            IResult <IList <IPackageArchive> > result = test.ScanPackageArchives();

            Assert.Equal(ResultCode.Success, result.ResultCode);
            Assert.Equal(1, result.ReturnValue.Count);
            Assert.Equal(PackageArchiveMock.Object, result.ReturnValue[0]);
        }
        public void ScanPackageArchivesListFailure()
        {
            PlatformMock.Setup(p => p.ListFiles(It.IsAny <string>()))
            .Returns(new Result <IList <string> >(ResultCode.Failure));

            PackageScanner test = new PackageScanner(PlatformManagerMock.Object, PackageFactoryMock.Object);

            IResult <IList <IPackageArchive> > result = test.ScanPackageArchives();

            Assert.Equal(ResultCode.Failure, result.ResultCode);
            Assert.Equal(0, result.ReturnValue.Count);
        }