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"); }
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"); }
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"); }