Пример #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);
 }
Пример #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);
 }
Пример #3
0
        public void UnpersistBag()
        {
            var unpersister = new BaseParamBagUnpersist();
            var bag = new EmptyParamBag();
            var mockReader = new Mock<XmlReader>();

            unpersister.UnpersistBag(bag, mockReader.Object);
        }
Пример #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));
        }
Пример #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);
 }