コード例 #1
0
        public void NumberComplementTestMethod()
        {
            NumberComplement numberComplement = new NumberComplement();

            Assert.AreEqual(2, numberComplement.FindComplement(5));
            Assert.AreEqual(0, numberComplement.FindComplement(1));
        }
コード例 #2
0
 public void ComplementNumberFor16_ShouldReturn15()
 {
     Assert.Equal(15, NumberComplement.FindComplement(16));
 }
コード例 #3
0
 public void ComplementNumberFor5_ShouldReturn2()
 {
     Assert.Equal(2, NumberComplement.FindComplement(5));
 }
コード例 #4
0
 public void ComplementNumberFor2_ShouldReturn1()
 {
     Assert.Equal(1, NumberComplement.FindComplement(2));
 }