예제 #1
0
        public void HammingWeight(uint n, int expected)
        {
            var sut    = new NumberOf1Bits();
            var actual = sut.HammingWeight(n);

            Assert.AreEqual(expected, actual);
        }
예제 #2
0
 public void BeforeEach()
 {
     numberOf1Bits = new NumberOf1Bits();
 }