Exemplo n.º 1
0
 public void UnpersistBag_Does_Not_Throw_If_Reader_Is_Null()
 {
     var unpersister = new BaseParamBagUnpersist();
     var bag = new EmptyParamBag();
     XmlReader reader = null;
     unpersister.UnpersistBag(bag, reader);
 }
Exemplo n.º 2
0
 public void Unpersist_Does_Not_Throw_If_ReaderIsNull()
 {
     var unpersister = new BaseParamBagUnpersist();
     var bag = new EmptyParamBag();
     XmlReader writer = null;
     unpersister.Unpersist(bag, writer);
 }
Exemplo n.º 3
0
        public void UnpersistBag()
        {
            var unpersister = new BaseParamBagUnpersist();
            var bag = new EmptyParamBag();
            var mockReader = new Mock<XmlReader>();

            unpersister.UnpersistBag(bag, mockReader.Object);
        }
Exemplo n.º 4
0
        public void Unpersist_ThrowsIfBagIsIncorrectType()
        {
            var unpersister = new BaseParamBagUnpersist();
            var mockBag = new Mock<IId>();

            var mockReader = new Mock<XmlReader>();

            var ex = Assert.Throws<InvalidCastException>(() => unpersister.Unpersist(mockBag.Object, mockReader.Object));
        }
Exemplo n.º 5
0
 public void Unpersist_Does_Not_Throw_If__Bag_Is_Null()
 {
     var unpersister = new BaseParamBagUnpersist();
     var mockReader = new Mock<XmlReader>();
     unpersister.Unpersist(null, mockReader.Object);
 }