예제 #1
0
 public void PersistBag_Does_Not_Throw_If_Writer_Is_Null()
 {
     var persister = new BaseParamBagPersist();
     var bag = new EmptyParamBag();
     XmlWriter writer = null;
     persister.PersistBag(bag, writer);
 }
예제 #2
0
        public void PersistBag()
        {
            var persister = new BaseParamBagPersist();
            var bag = new EmptyParamBag();
            var mockWriter = new Mock<XmlWriter>();

            persister.PersistBag(bag, mockWriter.Object);
        }
예제 #3
0
        public void PersistBag_Does_Not_Throw_If_Bag_IsI_ncorrectType()
        {
            var persister = new BaseParamBagPersist();
            var mockBag = new Mock<IParamBag>();

            var mockWriter = new Mock<XmlWriter>();

            persister.PersistBag(mockBag.Object, mockWriter.Object);
        }
예제 #4
0
 public void PersistBag_Does_Not_Throw_If_Bag_Is_Null()
 {
     var persister = new BaseParamBagPersist();
     var mockWriter = new Mock<XmlWriter>();
     persister.PersistBag(null, mockWriter.Object);
 }