Skip to content

Assert.Implements<T> with return value #87

Closed
@jensweigele

Description

I often have to write:
assert.Implement<IMyInterface>(myObject)
myObjectAsMyInterface := myObject as IMyInterface

What do you think of chaning the method
procedure Assert.Implement<T>(...)
to
function Assert.Implement<T>(...) :T
?

With this it is possible to write:
myObjectAsMyInterface := assert.Implement<IMyInterface>(myObject)

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions