public void GetSingleNumber_WhenCalled_ReturnItemThatExistOneAtArray(int[] nums, int expected) { var helper = new SingleNumber(); var result = helper.GetSingleNumber(nums); Assert.That(result, Is.EqualTo(expected)); }
public int SingleNumber(int[] nums) { var number = new SingleNumber(nums); return(number.GetSingleNumber()); }