Beispiel #1
0
        public void Test1(int[] array, int expectedResult)
        {
            SingleNumberSolution solution = new SingleNumberSolution();
            int result = solution.Solve(array);

            result.Should().Be(expectedResult);
        }
Beispiel #2
0
 public void Setup()
 {
     _singleNumberSolution = new SingleNumberSolution();
 }
Beispiel #3
0
 public void Setup()
 {
     _aprilWeek1Solution = new SingleNumberSolution();
 }
Beispiel #4
0
        public void SingleNumberDictionaryTest(int[] nums, int expected)
        {
            var actual = new SingleNumberSolution().SingleNumberDictionary(nums);

            Assert.Equal(expected, actual);
        }