Пример #1
0
            public void SetWithImplicitOperatorOnTarget(bool useCompiledXaml)
            {
                var page = new SetValue(useCompiledXaml);

                Assert.AreEqual("Foo", page.implicit3.Foo.Value);
            }
Пример #2
0
            public void SetValueWithImplicitOperatorOnTarget(bool useCompiledXaml)
            {
                var page = new SetValue(useCompiledXaml);

                Assert.AreEqual("Foo", ((SV_Foo)page.implicit1.GetValue(MockViewWithValues.BPFooProperty)).Value);
            }
Пример #3
0
            public void SetWithImplicitOperatorOnSource(bool useCompiledXaml)
            {
                var page = new SetValue(useCompiledXaml);

                Assert.AreEqual("Bar", page.implicit2.Bar);
            }
Пример #4
0
            public void ListsAreSimplified(bool useCompiledXaml)
            {
                var page = new SetValue(useCompiledXaml);

                Assert.That(page.contentview2.Content, Is.TypeOf <Label>());
            }
Пример #5
0
            public void SetValueWithImplicitOperatorOnSource(bool useCompiledXaml)
            {
                var page = new SetValue(useCompiledXaml);

                Assert.AreEqual("Bar", page.implicit0.GetValue(MockViewWithValues.BPBarProperty));
            }
Пример #6
0
            public void ConversionsAreAppliedOnSet(bool useCompiledXaml)
            {
                var page = new SetValue(useCompiledXaml);

                Assert.That(page.content0.Content, Is.TypeOf <Button>());
            }
Пример #7
0
            public void ConversionsAreAppliedOnAdd(bool useCompiledXaml)
            {
                var page = new SetValue(useCompiledXaml);

                Assert.That(page.stack4.Children[0], Is.TypeOf <Button>());
            }
Пример #8
0
            public void CreateValueTypes(bool useCompiledXaml)
            {
                var page = new SetValue(useCompiledXaml);

                Assert.AreEqual(Colors.Purple, page.Resources["purple"]);
            }
Пример #9
0
            public void FlagsAreApplied(bool useCompiledXaml)
            {
                var page = new SetValue(useCompiledXaml);

                Assert.AreEqual(AbsoluteLayoutFlags.PositionProportional | AbsoluteLayoutFlags.WidthProportional, AbsoluteLayout.GetLayoutFlags(page.label14));
            }
Пример #10
0
            public void SetConvertibleProperties(bool useCompiledXaml)
            {
                var page = new SetValue(useCompiledXaml);

                Assert.AreEqual(Colors.Red, page.label12.TextColor);
            }
Пример #11
0
            public void SetValueTypeProperties(bool useCompiledXaml)
            {
                var page = new SetValue(useCompiledXaml);

                Assert.AreEqual(Colors.Pink, page.label13.TextColor);
            }
Пример #12
0
            public void SetPropertyDefinedOnGenericType(bool useCompiledXaml)
            {
                var page = new SetValue(useCompiledXaml);

                Assert.AreEqual(2, page.listView.ItemsSource.Cast <object>().Count());
            }
Пример #13
0
            public void SetImplicitSingleCollectionContent(bool useCompiledXaml)
            {
                var page = new SetValue(useCompiledXaml);

                Assert.True(page.stack3.Children.Contains(page.label10));
            }
Пример #14
0
            public void SetImplicitContent(bool useCompiledXaml)
            {
                var page = new SetValue(useCompiledXaml);

                Assert.AreSame(page.label4, page.contentview1.Content);
            }
Пример #15
0
            public void SetBoolValue(bool useCompiledXaml)
            {
                var page = new SetValue(useCompiledXaml);

                Assert.True(page.image0.IsOpaque);
            }
Пример #16
0
            public void SetValueToBP(bool useCompiledXaml)
            {
                var page = new SetValue(useCompiledXaml);

                Assert.AreEqual("Foo", page.label0.Text);
            }