Beispiel #1
0
 public void Solves_Problem_001()
 {
     Solution001
     .Run(
         "../../../InputData/Problem001Test.dat",
         "anlgea,taahen,bocsoy,haodrn,esnnia,elyvsi,ashonn,gldlbou,usctyeri,ramveip")
     .Should()
     .Be("angela,athena,scooby,rhonda,insane,sylvie,hanson,bulldog,security,vampire");
 }
Beispiel #2
0
        public void TwoSumTest()
        {
            Solution001 s001 = new Solution001();

            int[] value    = new int[] { 2, 7, 11, 15 };
            int[] expected = new int[] { 0, 1 };

            int[] actual = s001.TwoSum_1(value, 9);
            Assert.Equal(expected, actual);
            //Assert.InRange(
        }
Beispiel #3
0
 public void TestName(int[] input, int target, int[] output)
 {
     Assert.Equal(output, Solution001.TwoSum(input, target));
 }
Beispiel #4
0
 public void Solves_Problem_001_Example()
 {
     Solution001.Run(10).Should().Be(23);
 }