public void Deve_retornar_verdadeiro_quando_owner_result_nao_preenchido() { var result = new OwnerResult(); result.Validar(); Assert.IsTrue(result.Notifications.Any()); }
public void Deve_retornar_falso_quando_owner_result_preenchido() { var result = new OwnerResult() { Id = 1, Node_Id = "MDQ6VXNlcjU4MzIzMQ==", Avatar_Url = "https://avatars.githubusercontent.com/u/583231?v=3", Login = "******", Type = "User", Url = "https://api.github.com/users/octocat" }; result.Validar(); Assert.IsFalse(result.Notifications.Any()); }