public void GetIdNumberPart_IdNotContainNumberPart_ThrowsException() { var workTask = new WorkTask { Id = "test" }; Assert.Throws <Exception>(() => workTask.GetIdNumberPart()); }
public void GetIdNumberPart_IdContainNumberPart_ReturnsNumberPart(string id, int expectedNumberPart) { var workTask = new WorkTask { Id = id }; Assert.AreEqual(workTask.GetIdNumberPart(), expectedNumberPart); }
public void GetIdNumberPart_IdIsNull_ThrowsException() { var workTask = new WorkTask { Id = null }; Assert.Throws <Exception>(() => workTask.GetIdNumberPart()); }