コード例 #1
0
 public void BeforeEach()
 {
     LastStoneWeight = new LastStoneWeight();
 }
コード例 #2
0
        //[TestCase(new[] { 1, 1, 3, 3, 5, 5, 7, 7 }, 0)]
        //[TestCase(new[] { 1, 3, 2, 3, 5, 0 }, 3)]
        //[TestCase(new[] { 1, 1, 2, 2 }, 2)]
        public void TestSolution(int[] input1, int expectedResult)
        {
            var result = new LastStoneWeight().Resolve(input1);

            Assert.AreEqual(expectedResult, result);
        }