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)); }
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); }