示例#1
0
        public void Deve_Adicionar_Notifications_E_Retornar_Estado_Invalido()
        {
            var instance = new CommandDerivedClass();

            instance.AddNotification("PROPRIEDADE", "MENSAGEM");
            Assert.True(instance.Invalid);
            Assert.Single(instance.Notifications);
        }
示例#2
0
        public void Deve_Implementar_Override_Validate()
        {
            var instance = new CommandDerivedClass();

            Assert.Throws <NotImplementedException>(() => instance.Validate());
        }
示例#3
0
        public void Deve_Iniciar_Instancia_Com_Estado_Valido()
        {
            var instance = new CommandDerivedClass();

            Assert.True(instance.Valid);
        }