示例#1
0
        public void EmptyTypeArguments()
        {
            var t1 = new MyXamlType("System.Int32", null, sctx);
            var t2 = new MyXamlType("System.Int32", new XamlType [0], sctx);

            Assert.IsTrue(t1 == t2, "#1");
            Assert.IsTrue(t1.Equals(t2), "#2");
        }
示例#2
0
        public void EmptyTypeArguments()
        {
            if (!Compat.IsPortableXaml)
            {
                Assert.Ignore("results in NRE on .NET 4.0 RTM, but should be treated the same");
            }
            var t1 = new MyXamlType("System.Int32", null, sctx);
            var t2 = new MyXamlType("System.Int32", new XamlType [0], sctx);

            Assert.IsTrue(t1 == t2, "#1");
            Assert.IsTrue(t1.Equals(t2), "#2");
        }
示例#3
0
		public void EmptyTypeArguments ()
		{
			var t1 = new MyXamlType ("System.Int32", null, sctx);
			var t2 = new MyXamlType ("System.Int32", new XamlType [0], sctx);
			Assert.IsTrue (t1 == t2, "#1");
			Assert.IsTrue (t1.Equals (t2), "#2");
		}