public void RegisterAndRetrieveArgs()
        {
            var args = new ExplicitArguments();

            Assert.IsNull(args.GetArg("name"));

            args.SetArg("name", "Jeremy");
            Assert.AreEqual("Jeremy", args.GetArg("name"));

            args.SetArg("age", 34);
            Assert.AreEqual(34, args.GetArg("age"));
        }
Example #2
0
        public void RegisterAndRetrieveArgs()
        {
            var args = new ExplicitArguments();

            args.GetArg("name").ShouldBeNull();

            args.SetArg("name", "Jeremy");
            args.GetArg("name").ShouldBe("Jeremy");

            args.SetArg("age", 34);
            args.GetArg("age").ShouldBe(34);
        }
        public void RegisterAndRetrieveArgs()
        {
            var args = new ExplicitArguments();
            Assert.IsNull(args.GetArg("name"));

            args.SetArg("name", "Jeremy");
            Assert.AreEqual("Jeremy", args.GetArg("name"));

            args.SetArg("age", 34);
            Assert.AreEqual(34, args.GetArg("age"));
        }