Esempio n. 1
0
        public void Content_ShouldBeSetAndGottenCorrectly(string testContent)
        {
            //Arrange && Act
            var storyComment = new Models.Stories.StoryComment {
                Content = testContent
            };

            //Assert
            Assert.AreEqual(testContent, storyComment.Content);
        }
Esempio n. 2
0
        public void Id_ShouldBeSetAndGottenCorrectly(string testId)
        {
            //Arrange && Act
            var storyComment = new Models.Stories.StoryComment {
                Id = Guid.Parse(testId)
            };

            //Assert
            Assert.AreEqual(testId, storyComment.Id.ToString());
        }
Esempio n. 3
0
        public void StoryId_ShouldBeSetAndGottenCorrectly()
        {
            //Arrange
            var testId = Guid.NewGuid();

            //Act
            var storyComment = new Models.Stories.StoryComment {
                StoryId = testId
            };

            //Assert
            Assert.AreEqual(testId, storyComment.StoryId);
        }
Esempio n. 4
0
        public void IsDeleted_ShouldBeSetAndGottenCorrectly()
        {
            //Arrange
            var isDeleted = true;

            //Act
            var storyComment = new Models.Stories.StoryComment {
                IsDeleted = isDeleted
            };

            //Assert
            Assert.AreEqual(isDeleted, storyComment.IsDeleted);
        }
Esempio n. 5
0
        public void User_ShouldBeSetAndGottenCorrectly()
        {
            //Arrange
            var user = new Models.Users.RegularUser();

            //Act
            var storyComment = new Models.Stories.StoryComment()
            {
                User = user
            };

            //Assert
            Assert.AreSame(user, storyComment.User);
        }
Esempio n. 6
0
        public void Story_ShouldBeSetAndGottenCorrectly()
        {
            //Arrange
            var story = new Models.Stories.Story();

            //Act
            var storyComment = new Models.Stories.StoryComment()
            {
                Story = story
            };

            //Assert
            Assert.AreSame(story, storyComment.Story);
        }
Esempio n. 7
0
        public void PublishDate_ShouldBeSetAndGottenCorrectly()
        {
            //Arrange
            var testDate = DateTime.Now;

            //Act
            var storyComment = new Models.Stories.StoryComment()
            {
                PublishDate = testDate
            };

            //Assert
            Assert.AreEqual(testDate, storyComment.PublishDate);
        }