Ejemplo n.º 1
0
        public void SimpleEntityToBSon()
        {
            var ent = new myEntity()
            {
                Property1 = 1, Property2 = 56.09, Property3 = "testtest"
            };

            ent.ToBSon();
        }
Ejemplo n.º 2
0
        public void SimpleEntityToBSonSerialized()
        {
            var ent = new myEntity()
            {
                Property1 = 1, Property2 = 56.09, Property3 = "testtest"
            };
            var rr = ent.ToBSon().Serialize();

            Assert.AreEqual(true, rr.Length > 0);
        }
Ejemplo n.º 3
0
        public void SimpleEntityOjectArrayToBSonSerialized()
        {
            var ent = new myEntity()
            {
                Property1 = 1, Property2 = 56.09, Property3 = "testtest"
            };
            var list = new ArrayList();

            list.Add(ent);
            var rr = list.ToBSon().Serialize();

            Assert.AreEqual(true, rr.Length > 0);
        }