コード例 #1
0
 public void BitPositionsTest()
 {
     var input = new[] {Tuple.Create(86, 2, 3), Tuple.Create(125, 1, 2)};
     var expected = new[] {"true", "false"};
     var prog = new BitPositions(input);
     var result = prog.Run().ToList();
     for (int i = 0; i < expected.Length; i++)
     {
         Assert.AreEqual(expected[i], result[i]);
     }
 }
コード例 #2
0
        public void BitPositionsTest()
        {
            var input    = new[] { Tuple.Create(86, 2, 3), Tuple.Create(125, 1, 2) };
            var expected = new[] { "true", "false" };
            var prog     = new BitPositions(input);
            var result   = prog.Run().ToList();

            for (int i = 0; i < expected.Length; i++)
            {
                Assert.AreEqual(expected[i], result[i]);
            }
        }