예제 #1
0
 public void SetCollectionNodeTest(
     [PexAssumeUnderTest] XmpTag target,
     string ns,
     string name,
     string[] values,
     XmpNodeType type
     )
 {
     PexAssume.IsNotNull(ns);
     PexAssume.IsNotNull(name);
     PexAssume.IsNotNull(values);
     PexAssume.IsTrue(!values.Contains(null));
     PexAssume.IsTrue(type != XmpNodeType.Simple && type != XmpNodeType.Alt);
     target.SetCollectionNode(ns, name, values, type);
     PexAssert.IsTrue(values.SequenceEqual(target.GetCollectionNode(ns, name)));
     // TODO: add assertions to method XmpTagTest.SetCollectionNodeTest(XmpTag, String, String, String[], XmpNodeType)
 }
예제 #2
0
 public string[] GetCollectionNodeTest(
     [PexAssumeUnderTest] XmpTag target,
     string ns,
     string name,
     string[] values
     )
 {
     PexAssume.IsNotNull(ns);
     PexAssume.IsNotNull(name);
     PexAssume.IsNotNull(values);
     PexAssume.IsTrue(!values.Contains(null));
     target.SetCollectionNode(ns, name, values, XmpNodeType.Seq);
     string[] result = target.GetCollectionNode(ns, name);
     PexAssert.IsTrue(result.SequenceEqual(values));
     return(result);
     // TODO: add assertions to method XmpTagTest.GetCollectionNodeTest(XmpTag, String, String)
 }