示例#1
0
        public void GetSingleNumber_WhenCalled_ReturnItemThatExistOneAtArray(int[] nums, int expected)
        {
            var helper = new SingleNumber();

            var result = helper.GetSingleNumber(nums);

            Assert.That(result, Is.EqualTo(expected));
        }
示例#2
0
        public int SingleNumber(int[] nums)
        {
            var number = new SingleNumber(nums);

            return(number.GetSingleNumber());
        }