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

github.com/xamarin/Xamarin.PropertyEditing.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Maupin <ermaup@microsoft.com>2018-01-30 23:47:45 +0300
committerEric Maupin <ermaup@microsoft.com>2018-01-30 23:47:47 +0300
commit01c1b317134aac152a533f39d0374e3e0b53ae1c (patch)
tree69ad0ff5cbf78b0821c439bde44ac04ba96c0c70 /Xamarin.PropertyEditing.Tests/PropertyViewModelTests.cs
parent71f08e86f8a5d6ed3d8a145c39d0d4edc25bb51c (diff)
[Test] Remove test for unknown resources
Property view models don't query their resources anymore, so it can not verify that the resource is present. There also is no real way for this to occur.
Diffstat (limited to 'Xamarin.PropertyEditing.Tests/PropertyViewModelTests.cs')
-rw-r--r--Xamarin.PropertyEditing.Tests/PropertyViewModelTests.cs18
1 files changed, 0 insertions, 18 deletions
diff --git a/Xamarin.PropertyEditing.Tests/PropertyViewModelTests.cs b/Xamarin.PropertyEditing.Tests/PropertyViewModelTests.cs
index af8b960..a7c4b7d 100644
--- a/Xamarin.PropertyEditing.Tests/PropertyViewModelTests.cs
+++ b/Xamarin.PropertyEditing.Tests/PropertyViewModelTests.cs
@@ -214,24 +214,6 @@ namespace Xamarin.PropertyEditing.Tests
}
[Test]
- public void CantSetValueToUnknownResource ()
- {
- var mockProperty = GetPropertyMock ();
- mockProperty.SetupGet (pi => pi.CanWrite).Returns (true);
-
- var resource = new Resource ("name");
-
- var resourcesMock = new Mock<IResourceProvider> ();
- resourcesMock.Setup (rp => rp.GetResourcesAsync (new object(), mockProperty.Object, It.IsAny<CancellationToken> ())).ReturnsAsync (new[] { resource });
-
- var vm = GetViewModel (mockProperty.Object, new[] { new Mock<IObjectEditor> ().Object });
- vm.ResourceProvider = resourcesMock.Object;
- Assume.That (vm.SetValueResourceCommand, Is.Not.Null);
-
- Assert.That (vm.SetValueResourceCommand.CanExecute (new Resource ("unknown")), Is.False, "Could set value to resource unknown");
- }
-
- [Test]
public void CanSetValueToResource ()
{
var mockProperty = GetPropertyMock ();