Ejemplo n.º 1
0
        public void GetIdNumberPart_IdNotContainNumberPart_ThrowsException()
        {
            var workTask = new WorkTask
            {
                Id = "test"
            };

            Assert.Throws <Exception>(() => workTask.GetIdNumberPart());
        }
Ejemplo n.º 2
0
        public void GetIdNumberPart_IdContainNumberPart_ReturnsNumberPart(string id, int expectedNumberPart)
        {
            var workTask = new WorkTask
            {
                Id = id
            };

            Assert.AreEqual(workTask.GetIdNumberPart(), expectedNumberPart);
        }
Ejemplo n.º 3
0
        public void GetIdNumberPart_IdIsNull_ThrowsException()
        {
            var workTask = new WorkTask
            {
                Id = null
            };

            Assert.Throws <Exception>(() => workTask.GetIdNumberPart());
        }