Skip to content
This repository was archived by the owner on Jul 15, 2023. It is now read-only.
This repository was archived by the owner on Jul 15, 2023. It is now read-only.

Impove string-contained code snippets #190

@Dennis-Petrov

Description

@Dennis-Petrov

cresn/cesn code snippets should generate string type name:

    Contract.Ensures(!string.IsNullOrEmpty(Contract.Result<string>()));
    Contract.Requires<ArgumentException>(!string.IsNullOrEmpty(arg));

instead of String:

    Contract.Ensures(!String.IsNullOrEmpty(Contract.Result<string>()));
    Contract.Requires<ArgumentException>(!String.IsNullOrEmpty(arg));

Also, something like cresnw/cesnw will be suitable:

    Contract.Ensures(!string.IsNullOrWhitespace(Contract.Result<string>()));
    Contract.Requires<ArgumentException>(!string.IsNullOrWhitespace(arg));

I know, that I could fix/add snippets by myself, but out-of-the-box always better :).

Metadata

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