Ejemplo n.º 1
0
        public void Content_ShouldBeSetAndGottenCorrectly(string testContent)
        {
            //Arrange && Act
            var projectComment = new Models.Projects.ProjectComment {
                Content = testContent
            };

            //Assert
            Assert.AreEqual(testContent, projectComment.Content);
        }
Ejemplo n.º 2
0
        public void Id_ShouldBeSetAndGottenCorrectly(string testId)
        {
            //Arrange && Act
            var projectComment = new Models.Projects.ProjectComment {
                Id = Guid.Parse(testId)
            };

            //Assert
            Assert.AreEqual(testId, projectComment.Id.ToString());
        }
Ejemplo n.º 3
0
        public void ProjectId_ShouldBeSetAndGottenCorrectly()
        {
            //Arrange
            var testId = Guid.NewGuid();

            //Act
            var projectComment = new Models.Projects.ProjectComment {
                ProjectId = testId
            };

            //Assert
            Assert.AreEqual(testId, projectComment.ProjectId);
        }
Ejemplo n.º 4
0
        public void IsDeleted_ShouldBeSetAndGottenCorrectly()
        {
            //Arrange
            var isDeleted = true;

            //Act
            var projectComment = new Models.Projects.ProjectComment {
                IsDeleted = isDeleted
            };

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

            //Act
            var projectComment = new Models.Projects.ProjectComment()
            {
                User = user
            };

            //Assert
            Assert.AreSame(user, projectComment.User);
        }
Ejemplo n.º 6
0
        public void Project_ShouldBeSetAndGottenCorrectly()
        {
            //Arrange
            var project = new Models.Projects.Project();

            //Act
            var projectComment = new Models.Projects.ProjectComment()
            {
                Project = project
            };

            //Assert
            Assert.AreSame(project, projectComment.Project);
        }
Ejemplo n.º 7
0
        public void PublishDate_ShouldBeSetAndGottenCorrectly()
        {
            //Arrange
            var testDate = DateTime.Now;

            //Act
            var projectComment = new Models.Projects.ProjectComment()
            {
                PublishDate = testDate
            };

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