static void Main() { Dois d1 = new Dois(); Console.WriteLine(d1.pluss(12, 12)); d1.discoverPlus(15, 8); }
public string GetNomedoNumero(char numero, int ordem) { Numero num = null; switch (numero) { case '0': num = new Zero(); break; case '1': num = new Um(numero, ordem); break; case '2': num = new Dois(numero, ordem); break; case '3': num = new Tres(numero, ordem); break; case '4': num = new Quatro(numero, ordem); break; case '5': num = new Cinco(numero, ordem); break; case '6': num = new Seis(numero, ordem); break; case '7': num = new Sete(numero, ordem); break; case '8': num = new Oito(numero, ordem); break; case '9': num = new Nove(numero, ordem); break; } return(num.GetNome()); }
public void RealizarSoma() { int i = 1; do { Dois.Click(); Mais.Click(); Quatro.Click(); Igual.Click(); StringAssert.Contains("6", Resultado.Text); Limpar.Click(); i++; } while (i <= 3); }
public void DeveObterValorDoNumeroDois() { Numero dois = new Dois(); Assert.AreEqual(2, dois.GetValor, "Valor diferente de dois"); }
static void Main() { Dois d1 = new Dois(); }
static void Main() { Dois d1 = new Dois(); d1.inf(); }