Exemplo n.º 1
0
        public void SetName_CorrectName_ShouldSetName()
        {
            // Arrange
            var issue = new Entities.Issue("Clean up room");

            // Act
            issue.SetName("Clean out room");

            // Assert
            Assert.AreEqual("Clean out room", issue.Name);
        }
Exemplo n.º 2
0
        public void SetName_IncorrectName_ShouldThrowArgException()
        {
            // Arrange
            var issue = new Entities.Issue("Clean up room");

            // Act
            var del = new TestDelegate(() => issue.SetName(string.Empty));

            // Assert
            Assert.Throws <System.ArgumentException>(del);
        }