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