예제 #1
0
 public void Test3()
 {
     var entry = new[] { 30, 60, 90 };
     var expected = new[] { 1, 1, 0 };
     Assert.IsTrue(expected.SequenceEqual(DailyTemp.DailyTemperatures(entry)));
 }
예제 #2
0
 public void Test1()
 {
     var entry = new[] { 73, 74, 75, 71, 69, 72, 76, 73 };
     var expected = new[] { 1, 1, 4, 2, 1, 1, 0, 0 };
     Assert.IsTrue(expected.SequenceEqual(DailyTemp.DailyTemperatures(entry)));
 }