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

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

            Assert.Equal(expected, actual);
        }