예제 #1
0
 public void SetStaticGetNow()
 {
     Assert.Equal("2015-06-07 08:09:10", TestDynamicResponse.Eval("GetNow().ToString(\"yyyy-MM-dd HH:mm:ss\")", now: new DateTime(2015, 6, 7, 8, 9, 10)));
 }
예제 #2
0
 public async Task SetStaticGetNow()
 {
     Assert.Equal("2015-06-07 08:09:10", await TestDynamicResponse.EvalAsync("GetNow().ToString(\"yyyy-MM-dd HH':'mm':'ss\")", now: new DateTime(2015, 6, 7, 8, 9, 10)));
 }