Пример #1
0
        public void Attach()
        {
            Description    desc = new Description("filename", "the filename", eROLE.PASSED, new ParamString(), eSCOPE.REQUIRED, eMULTIPLICITY.ONCE);
            ArgumentPassed arg  = new ArgumentPassed(0, "document.txt");

            arg.Attach(new[] { desc });

            Assert.IsNotNull(arg.Desc);
        }
Пример #2
0
        public void ArgumentPassed_0()
        {
            ArgumentPassed arg = new ArgumentPassed(0, "document.txt");

            Assert.AreEqual(0, arg.Order);

            arg.Order = 99;
            Assert.AreEqual(99, arg.Order);
        }
Пример #3
0
        public void Request_0()
        {
            Description    desc   = new Description("filename", "the filename", eROLE.PASSED, new ParamString(), eSCOPE.REQUIRED, eMULTIPLICITY.ONCE);
            ArgumentPassed passed = new ArgumentPassed(0, "document.txt");

            Request r = new Request(new[] { passed }, new[] { desc });

            // ensure description is attached to argument
            Assert.IsNotNull(passed.Desc);
        }
Пример #4
0
 public void ArgumentPassed_2()
 {
     ArgumentPassed arg = new ArgumentPassed(0, "");
 }
Пример #5
0
 public void ArgumentPassed_1()
 {
     ArgumentPassed arg = new ArgumentPassed(0, null);
 }