Ejemplo n.º 1
0
        public void Create_CommentXdPoint_GoodCommentId()
        {
            int commentId   = 10;
            var mockFactory = new XdPointFactory <CommentXdPoint>();

            var result = mockFactory.Create("10", commentId) as CommentXdPoint;

            Assert.Equal(commentId, result.CommentId);
        }
Ejemplo n.º 2
0
        public void Create_MemeXdPoint_GoodMemeId()
        {
            int memeId      = 10;
            var mockFactory = new XdPointFactory <MemeXdPoint>();

            var result = mockFactory.Create("10", memeId) as MemeXdPoint;

            Assert.Equal(memeId, result.MemeId);
        }
Ejemplo n.º 3
0
        public void Create_XdPoint_BadType()
        {
            int       id          = 10;
            var       mockFactory = new XdPointFactory <XdPoint>();
            Exception initEx      = null;

            try
            {
                mockFactory.Create("10", id);
            }
            catch (Exception ex)
            {
                initEx = ex;
            }

            Assert.True(initEx != null);
        }