示例#1
0
        public void TestUXILCompilerConstructorInterface()
        {
            var ctor = ValueParser.GetUxilCompilerCtor();

            Assert.IsNotNull(ctor, "Failed to find an UXIL Constructor.");
            var parameters = ctor.GetParameters().Select(p => p.ParameterType.FullName);

            Assert.That(
                parameters,
                Is.EqualTo(
                    new[]
            {
                "Uno.UX.Markup.Reflection.IDataTypeProvider",
                "System.String",
                "Uno.UX.Markup.AST.Element",
                "Uno.UX.Markup.Common.IMarkupErrorLog",
            }),
                "Constructor parameters doesn't match the expected parameters.");
        }