public void TesteCalcularValorTotalNotaFiscalSemFornecedor() { notaFiscal.Fornecedor = null; Assert.Throws(typeof(FornecedorNaoInformadoException), delegate() { notaFiscal.CalcularValorTotalNotaFiscal(); }); }