public void Attach() { Description desc = new Description("filename", "the filename", eROLE.NAMED, new ParamString(), eSCOPE.REQUIRED, eMULTIPLICITY.ONCE); ArgumentNamed arg = new ArgumentNamed(0, "filename", "document.txt"); arg.Attach(new[] { desc }); Assert.IsNotNull(arg.Desc); }
public void Create_1() { ArgumentNamed arg = ArgumentFactory.Create(2, "/", "=", "/debug=on") as ArgumentNamed; Assert.IsNotNull(arg); Assert.AreEqual("debug", arg.Name); Assert.AreEqual("on", arg.Value); Assert.AreEqual(2, arg.Index); }
public void ArgumentNamed_0() { ArgumentNamed arg = new ArgumentNamed(2, "test", "wow"); Assert.AreEqual(2, arg.Index); Assert.AreEqual("test", arg.Name); Assert.AreEqual("wow", arg.Value); arg = new ArgumentNamed(6, "test", null); Assert.AreEqual(6, arg.Index); Assert.AreEqual("test", arg.Name); Assert.IsNull(arg.Value); }
public void ArgumentNamed_2() { ArgumentNamed arg = new ArgumentNamed(0, "", null); }
public void ArgumentNamed_1() { ArgumentNamed arg = new ArgumentNamed(0, null, null); }