コード例 #1
0
        public void GetValuesDefaults()
        {
            var prop     = BindableProperty.Create("Foo", typeof(int), typeof(MockBindable), 0);
            var prop1    = BindableProperty.Create("Foo1", typeof(int), typeof(MockBindable), 1);
            var prop2    = BindableProperty.Create("Foo2", typeof(int), typeof(MockBindable), 2);
            var bindable = new MockBindable();


            object[] values = bindable.GetValues(prop, prop1, prop2);
            Assert.That(values.Length == 3);
            Assert.That(values[0], Is.EqualTo(0));
            Assert.That(values[1], Is.EqualTo(1));
            Assert.That(values[2], Is.EqualTo(2));
        }