public void PoW_Complete_ShouldHaveThrowDomainException() { var ex = Assert.Throws <DomainException>(() => powWithNoEmployee.CompletePow()); Assert.Equal("To complete a piece of work, it should have a employee", ex.Message); powWithEmployee.RemoveEmployee(); ex = Assert.Throws <DomainException>(() => powWithEmployee.CompletePow()); Assert.Equal("To complete a piece of work, it should have a employee", ex.Message); }
public void PoW_Complete_ShouldHaveStatusCompleted() { powWithEmployee.CompletePow(); Assert.True(powWithEmployee.IsCompleted()); }