Пример #1
0
            public void Datetime()
            {
                var layout = new BuiltInConversions();

                Assert.AreEqual(new DateTime(2015, 01, 16), layout.datetime0.Date);
                Assert.AreEqual(new DateTime(2015, 01, 16), layout.datetime1.Date);
            }
Пример #2
0
            public void Datetime(bool useCompiledXaml)
            {
                var layout = new BuiltInConversions(useCompiledXaml);

                Assert.AreEqual(new DateTime(2015, 01, 16), layout.datetime0.Date);
                Assert.AreEqual(new DateTime(2015, 01, 16), layout.datetime1.Date);
            }
Пример #3
0
            public void String()
            {
                var layout = new BuiltInConversions();

                Assert.AreEqual("foobar", layout.label0.Text);
                Assert.AreEqual("foobar", layout.label1.Text);

                //Issue #2122, implicit content property not trimmed
                Assert.AreEqual("foobar", layout.label2.Text);
            }