Exemple #1
0
            public void TestStringCtor(bool useCompiledXaml)
            {
                var layout = new FactoryMethods(useCompiledXaml);

                Assert.AreEqual("alternate ctor foobar", layout.v1.Content.Content);
            }
Exemple #2
0
            public void TestCtorWithxStaticAttribute(bool useCompiledXaml)
            {
                var layout = new FactoryMethods(useCompiledXaml);

                Assert.AreEqual("alternate ctor Property", layout.v7.Content.Content);
            }
Exemple #3
0
            public void TestDefaultCtor(bool useCompiledXaml)
            {
                var layout = new FactoryMethods(useCompiledXaml);

                Assert.AreEqual("default ctor", layout.v0.Content.Content);
            }
Exemple #4
0
            public void TestFactoryMethod(bool useCompiledXaml)
            {
                var layout = new FactoryMethods(useCompiledXaml);

                Assert.AreEqual("factory foo42", layout.v4.Content.Content);
            }
Exemple #5
0
            public void TestFactoryMethodParametersOrder(bool useCompiledXaml)
            {
                var layout = new FactoryMethods(useCompiledXaml);

                Assert.AreEqual("factory 42foo", layout.v5.Content.Content);
            }
Exemple #6
0
            public void TestIntCtor(bool useCompiledXaml)
            {
                var layout = new FactoryMethods(useCompiledXaml);

                Assert.AreEqual("int ctor 42", layout.v2.Content.Content);
            }
Exemple #7
0
            public void TestArgumentlessFactoryMethod(bool useCompiledXaml)
            {
                var layout = new FactoryMethods(useCompiledXaml);

                Assert.AreEqual("parameterless factory", layout.v3.Content.Content);
            }
			public void TestFactoryMethod (bool useCompiledXaml)
			{
				var layout = new FactoryMethods (useCompiledXaml);
				Assert.AreEqual ("factory foo42", layout.v4.Content.Content);
			}
Exemple #9
0
            public void TestCtorWithArrayParameter(bool useCompiledXaml)
            {
                var layout = new FactoryMethods(useCompiledXaml);

                Assert.AreEqual("Foo Bar", layout.v8.Content.Content);
            }
			public void TestArgumentlessFactoryMethod (bool useCompiledXaml)
			{
				var layout = new FactoryMethods (useCompiledXaml);
				Assert.AreEqual ("parameterless factory", layout.v3.Content.Content);
			}
			public void TestIntCtor (bool useCompiledXaml)
			{
				var layout = new FactoryMethods (useCompiledXaml);
				Assert.AreEqual ("int ctor 42", layout.v2.Content.Content);
			}
			public void TestStringCtor (bool useCompiledXaml)
			{
				var layout = new FactoryMethods (useCompiledXaml);
				Assert.AreEqual ("alternate ctor foobar", layout.v1.Content.Content);
			}
			public void TestDefaultCtor (bool useCompiledXaml)
			{
				var layout = new FactoryMethods (useCompiledXaml);
				Assert.AreEqual ("default ctor", layout.v0.Content.Content);
			}
			public void TestFactoryMethodParametersOrder (bool useCompiledXaml)
			{
				var layout = new FactoryMethods (useCompiledXaml);
				Assert.AreEqual ("factory 42foo", layout.v5.Content.Content);
			}