XamlReader GetReader (string filename)
{
- return new XamlXmlReader (XmlReader.Create (Path.Combine ("Test/XmlFiles", filename), new XmlReaderSettings () { CloseInput =true }));
+#if NET_4_5
+ string ver = "net_4_5";
+#else
+ string ver = "net_4_0";
+#endif
+ string xml = File.ReadAllText (Path.Combine ("Test/XmlFiles", filename)).Replace ("net_4_0", ver);
+ return new XamlXmlReader (XmlReader.Create (new StringReader (xml)));
}
void ReadTest (string filename)
Read_DirectDictionaryContainer (r);
}
+ // It is not really a common test; it just makes use of base helper methods.
+ [Test]
+ public void Read_DirectDictionaryContainer2 ()
+ {
+ var r = GetReader ("DirectDictionaryContainer2.xml");
+ Read_DirectDictionaryContainer2 (r);
+ }
+
+ [Test]
+ public void Read_ContentPropertyContainer ()
+ {
+ var r = GetReader ("ContentPropertyContainer.xml");
+ Read_ContentPropertyContainer (r);
+ }
+
#region non-common tests
[Test]
public void Bug680385 ()