public void Test()
        {
            var fileSystem = new Mock<MockFileSystem>();
            fileSystem.Object.AddFile(@"x:\test\packages.config", @"<?xml version=""1.0"" encoding=""utf-8""?>
            <packages>
            <package id=""Foo"" version=""1.0"" />
            <package id=""Baz"" version=""0.7"" />
            </packages>");



            var packageRepositoryFactory = new Mock<IPackageRepositoryFactory>();
            var packageSourceProvider =new Mock<IPackageSourceProvider>();
            var findAssemblyCommand = new FindAssemblyTest(packageRepositoryFactory.Object, packageSourceProvider.Object, fileSystem.Object);
        }
示例#2
0
        public void Test()
        {
            var fileSystem = new Mock <MockFileSystem>();

            fileSystem.Object.AddFile(@"x:\test\packages.config", @"<?xml version=""1.0"" encoding=""utf-8""?>
            <packages>
            <package id=""Foo"" version=""1.0"" />
            <package id=""Baz"" version=""0.7"" />
            </packages>");



            var packageRepositoryFactory = new Mock <IPackageRepositoryFactory>();
            var packageSourceProvider    = new Mock <IPackageSourceProvider>();
            var findAssemblyCommand      = new FindAssemblyTest(packageRepositoryFactory.Object, packageSourceProvider.Object, fileSystem.Object);
        }