public void OneTimeSetUp() { if (KnownTypes == null) { KnownTypes = new XmlKnownTypeSet(typeof(T)); KnownTypes.Add(new XmlKnownType("A", null, null, null, typeof(T)), true); } if (IncludedTypes == null) { IncludedTypes = new MockXmlIncludedTypeMap(); IncludedTypes.DefaultClrType = typeof(T); IncludedTypes.InnerSet.Add(new XmlIncludedType("T", string.Empty, typeof(T))); } }
public virtual void OneTimeSetUp() { if (IncludedTypes == null) { IncludedTypes = new MockXmlIncludedTypeMap(); IncludedTypes.DefaultClrType = TypeA.ClrType; IncludedTypes.InnerSet.Add(TypeA); IncludedTypes.InnerSet.Add(TypeB); } if (Context == null) { Context = new XmlContextBase(); Context.AddNamespace("p", "ns"); Context.AddVariable("test", "v", new MockXPathVariable("VariableValue")); Context.AddFunction("test", "f", new MockXPathFunction("FunctionValue")); } }
#pragma warning restore 618 public void OneTimeSetUp() { if (IncludedTypes == null) { IncludedTypes = new MockXmlIncludedTypeMap(); IncludedTypes.DefaultClrType = TypeA.ClrType; IncludedTypes.InnerSet.Add(TypeA); IncludedTypes.InnerSet.Add(TypeB); } if (Context == null) { Context = new XmlContextBase(); Context.AddNamespace("p", "ns"); Context.AddVariable("test", "v", new MockXPathVariable("VariableValue")); Context.AddFunction("test", "f", new MockXPathFunction("FunctionValue")); } }
public void OneTimeSetUp() { if (KnownTypes == null) { KnownTypes = new XmlKnownTypeSet(typeof(T)); KnownTypes.Add(new XmlKnownType("A", null, null, null, typeof(T)), true); } if (IncludedTypes == null) { IncludedTypes = new MockXmlIncludedTypeMap(); IncludedTypes.DefaultClrType = typeof(T); IncludedTypes.InnerSet.Add(new XmlIncludedType("T", string.Empty, typeof(T))); } }