public void Content_ShouldBeSetAndGottenCorrectly(string testContent) { //Arrange && Act var storyComment = new Models.Stories.StoryComment { Content = testContent }; //Assert Assert.AreEqual(testContent, storyComment.Content); }
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()); }
public void StoryId_ShouldBeSetAndGottenCorrectly() { //Arrange var testId = Guid.NewGuid(); //Act var storyComment = new Models.Stories.StoryComment { StoryId = testId }; //Assert Assert.AreEqual(testId, storyComment.StoryId); }
public void IsDeleted_ShouldBeSetAndGottenCorrectly() { //Arrange var isDeleted = true; //Act var storyComment = new Models.Stories.StoryComment { IsDeleted = isDeleted }; //Assert Assert.AreEqual(isDeleted, storyComment.IsDeleted); }
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); }
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); }
public void PublishDate_ShouldBeSetAndGottenCorrectly() { //Arrange var testDate = DateTime.Now; //Act var storyComment = new Models.Stories.StoryComment() { PublishDate = testDate }; //Assert Assert.AreEqual(testDate, storyComment.PublishDate); }