Beispiel #1
0
        public void FromName()
        {
            using (UINib n = UINib.FromName("EmptyNib", null)) {
                Assert.NotNull(n, "created with null options");
#if !XAMCORE_2_0
                // obsolete name (too long and case typo)
                var result = n.InstantiateWithOwneroptions(null, null);
                Assert.That(result.Length, Is.EqualTo(0), "InstantiateWithOwneroptions");
#endif
                // newer version (same selector)
                var result2 = n.Instantiate(null, null);
                Assert.That(result2.Length, Is.EqualTo(0), "Instantiate");
            }
        }