示例#1
0
 public void result_is_actual_object()
 {
     var obj = "Hello World";
     var typeIs = new TypeIsExpect(Body(() => obj is string), new ExpectValue(obj), typeof(string));
     Check.That(() => Object.ReferenceEquals(typeIs.Check().Actual.Value, obj));
 }
示例#2
0
 public void null_handling()
 {
     object obj = null;
     var typeIs = new TypeIsExpect(Body(() => obj is string), new ExpectValue(null), typeof(string));
     Check.That(() => typeIs.Check().IsSuccess == false);
 }