Exemple #1
0
        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);
        }
Exemple #2
0
        public void PoW_Complete_ShouldHaveStatusCompleted()
        {
            powWithEmployee.CompletePow();

            Assert.True(powWithEmployee.IsCompleted());
        }