Exemplo n.º 1
0
        public void NumberComplementTestMethod()
        {
            NumberComplement numberComplement = new NumberComplement();

            Assert.AreEqual(2, numberComplement.FindComplement(5));
            Assert.AreEqual(0, numberComplement.FindComplement(1));
        }
Exemplo n.º 2
0
 public void ComplementNumberFor16_ShouldReturn15()
 {
     Assert.Equal(15, NumberComplement.FindComplement(16));
 }
Exemplo n.º 3
0
 public void ComplementNumberFor5_ShouldReturn2()
 {
     Assert.Equal(2, NumberComplement.FindComplement(5));
 }
Exemplo n.º 4
0
 public void ComplementNumberFor2_ShouldReturn1()
 {
     Assert.Equal(1, NumberComplement.FindComplement(2));
 }