public ITestObject AssertIsType(Type expected) { Type actualType = NakedObject.GetDomainObject().GetType(); actualType = TypeUtils.IsProxy(actualType) ? actualType.BaseType : actualType; Assert.IsTrue(actualType == expected, "Expected type " + expected + " but got " + actualType); return(this); }
public object GetDomainObject() { return(NakedObject.GetDomainObject()); }
public object GetDomainObject() => NakedObject.GetDomainObject();