Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Ward <matt.ward@xamarin.com>2016-05-31 21:56:46 +0300
committerMatt Ward <matt.ward@xamarin.com>2016-05-31 21:56:46 +0300
commite486caae775d234bcde2564c67133d2483d87988 (patch)
tree08036f9f664974a80750e5946ea6743924e4d831 /main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Tests/MonoDevelop.PackageManagement.Tests.Helpers/FakeNuGetSettings.cs
parent980f7c3f2d015f317673a30b6b752fd919087e4f (diff)
[NuGet] Add unit tests for all packages view model.
This is a migration of existing tests for the old available packages view model which has been replaced by the new AllPackagesAvailableViewModel.
Diffstat (limited to 'main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Tests/MonoDevelop.PackageManagement.Tests.Helpers/FakeNuGetSettings.cs')
-rw-r--r--main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Tests/MonoDevelop.PackageManagement.Tests.Helpers/FakeNuGetSettings.cs101
1 files changed, 101 insertions, 0 deletions
diff --git a/main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Tests/MonoDevelop.PackageManagement.Tests.Helpers/FakeNuGetSettings.cs b/main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Tests/MonoDevelop.PackageManagement.Tests.Helpers/FakeNuGetSettings.cs
new file mode 100644
index 0000000000..5704d28232
--- /dev/null
+++ b/main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Tests/MonoDevelop.PackageManagement.Tests.Helpers/FakeNuGetSettings.cs
@@ -0,0 +1,101 @@
+//
+// FakeNuGetSettings.cs
+//
+// Author:
+// Matt Ward <matt.ward@xamarin.com>
+//
+// Copyright (c) 2016 Xamarin Inc. (http://xamarin.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+using System;
+using System.Collections.Generic;
+using NuGet.Configuration;
+
+namespace MonoDevelop.PackageManagement.Tests.Helpers
+{
+ class FakeNuGetSettings : ISettings
+ {
+ public string FileName {
+ get {
+ throw new NotImplementedException ();
+ }
+ }
+
+ public IEnumerable<ISettings> Priority {
+ get {
+ throw new NotImplementedException ();
+ }
+ }
+
+ public string Root {
+ get {
+ throw new NotImplementedException ();
+ }
+ }
+
+ public event EventHandler SettingsChanged;
+
+ public bool DeleteSection (string section)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public bool DeleteValue (string section, string key)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public IList<KeyValuePair<string, string>> GetNestedValues (string section, string subSection)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public IList<SettingValue> GetSettingValues (string section, bool isPath = false)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public string GetValue (string section, string key, bool isPath = false)
+ {
+ return null;
+ }
+
+ public void SetNestedValues (string section, string subSection, IList<KeyValuePair<string, string>> values)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public void SetValue (string section, string key, string value)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public void SetValues (string section, IReadOnlyList<SettingValue> values)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public void UpdateSections (string section, IReadOnlyList<SettingValue> values)
+ {
+ throw new NotImplementedException ();
+ }
+ }
+}
+