예제 #1
0
        public void TestInitialize()
        {
            _mock = new PartMocker();
            Definition def = new Definition(_mock, 0, 0)
            {
                Name = "bla"
            };

            _mock.Definitions["bla"] = def;
            _mock.Definitions["bla"].SetValue(new MplBoolean(false, 0, 0));
            _mock.Definitions["fuu"] = new Definition(_mock, 0, 0);
            _mock.Definitions["fuu"].SetValue(new MplBoolean(true, 0, 0));
            _mock.Definitions["bar"] = new Definition(_mock, 0, 0)
            {
                Name = "bar"
            };
            _mock.Definitions["bar"].SetValue(new MplString("bar", 0, 0));
            _mock.Definitions["baz"] = new Definition(_mock, 0, 0)
            {
                Name = "baz"
            };
            _mock.Definitions["baz"].SetValue(new MplString("baz", 0, 0));

            _omock = new OutMocker(Encoding.ASCII);
        }
예제 #2
0
        public void TestInitialize()
        {
            _mock = new PartMocker();
            Definition def = new Definition(_mock, 0, 0)
            {
                Name = "bla"
            };

            _mock.Definitions["bla"] = def;
            _mock.Definitions["bla"].SetValue(new MplBoolean(false, 0, 0));
            _mock.Definitions["fuu"] = new Definition(_mock, 0, 0);
            _mock.Definitions["fuu"].SetValue(new MplInteger(2, 0, 0));
            _mock.Definitions["bar"] = new Definition(_mock, 0, 0)
            {
                Name = "bar"
            };
            _mock.Definitions["bar"].SetValue(new MplString("bar", 0, 0));
            _mock.Definitions["baz"] = new Definition(_mock, 0, 0)
            {
                Name = "baz"
            };
            _mock.Definitions["baz"].SetValue(new MplString("baz", 0, 0));

            _imock = new InMocker();
        }
예제 #3
0
 public void TestInitialize()
 {
     _mock = new PartMocker();
     _mock.Definitions["bla"] = new Definition(_mock, 0, 0);
     _mock.Definitions["bla"].SetValue(new MplBoolean(false, 0, 0));
     _mock.Definitions["fuu"] = new Definition(_mock, 0, 0);
     _mock.Definitions["fuu"].SetValue(new MplBoolean(true, 0, 0));
     _mock.Scope.Add("bar");
 }
예제 #4
0
 public void TestInitialize()
 {
     _mock = new PartMocker();
     _mock.Definitions["bla"] = new Definition(_mock, 0, 0)
     {
         Name = "bla"
     };
     _mock.Definitions["bla"].SetValue(new MplInteger(0, 0, 0));
     _mock.Definitions["fuu"] = new Definition(_mock, 0, 0)
     {
         Name = "fuu"
     };
     _mock.Definitions["fuu"].SetValue(new MplInteger(0, 0, 0));
 }