示例#1
0
        public void Instance_Inherit_From_CreationInfo()
        {
            //Arrange
            var type = typeof(CreationInfo);

            //Act
            var postTag = new PostToTag();

            //Assert
            Assert.IsAssignableFrom(type, postTag);
        }
示例#2
0
        public void Instance_Have_ToId()
        {
            //Arrange
            var postToTag = new PostToTag();

            //Act
            var toId = postToTag.ToId;

            //Assert

            Assert.IsAssignableFrom <int>(toId);
        }
示例#3
0
        public void Instance_Have_Tag()
        {
            //Arrange
            var postToTag = new PostToTag()
            {
                Tag = new Tag()
            };

            //Act
            var tag = postToTag.Tag;

            //Assert
            Assert.IsAssignableFrom <Tag>(tag);
        }
示例#4
0
        public void Instance_Have_Post()
        {
            //Arrange
            var postToTag = new PostToTag()
            {
                Post = new Post()
            };

            //Act
            var post = postToTag.Post;

            //Assert
            Assert.IsAssignableFrom <Post>(post);
        }