public void TestProcessCodeConfig() { SettingsService settingsService = new SettingsService(); this.mockSettingsService.SetupGet(x => x.ConfigPath).Returns(settingsService.ConfigPath); Mock <IProjectService> mockProjectService = new Mock <IProjectService>(); mockProjectService.SetupGet(x => x.Name).Returns("Adrian.WindowsPhone"); CodeConfig codeConfig = new CodeConfig { References = new List <string> { "test" } }; MockPathBase mockPathBase = new MockPathBase(); this.mockFileSystem.SetupGet(x => x.Path).Returns(mockPathBase); ////this.mockSettingsService.SetupGet(x => x.UseNugetForPlugins).Returns(false); /*this.service.ProcessCodeConfig(mockProjectService.Object, "SQLite", "source", "destination"); * * mockProjectService.Verify( * x => x.AddReference( * It.IsAny<string>(), * It.IsAny<string>(), * It.IsAny<string>(), * It.IsAny<bool>(), * It.IsAny<bool>()));*/ }
public void TestProcessCodeConfig() { SettingsService settingsService = new SettingsService(); this.mockSettingsService.SetupGet(x => x.ConfigPath).Returns(settingsService.ConfigPath); Mock<IProjectService> mockProjectService = new Mock<IProjectService>(); mockProjectService.SetupGet(x => x.Name).Returns("Adrian.WindowsPhone"); CodeConfig codeConfig = new CodeConfig { References = new List<string> { "test" } }; MockPathBase mockPathBase = new MockPathBase(); this.mockFileSystem.SetupGet(x => x.Path).Returns(mockPathBase); ////this.mockSettingsService.SetupGet(x => x.UseNugetForPlugins).Returns(false); /*this.service.ProcessCodeConfig(mockProjectService.Object, "SQLite", "source", "destination"); mockProjectService.Verify( x => x.AddReference( It.IsAny<string>(), It.IsAny<string>(), It.IsAny<string>(), It.IsAny<bool>(), It.IsAny<bool>()));*/ }