Git Product home page Git Product logo

ainsworth.dotnet-extensions's People

Watchers

 avatar

ainsworth.dotnet-extensions's Issues

Implement extensions for String.* static methods

Background

There are many useful static methods in the .NET String class. For example, String.IsNullOrEmpty. While most String methods are used in object-oriented form (e.g., value.Substring]), the half-dozen or so that are not seem out of place and somewhat awkward.

Requirements

Create extension methods and unit test for the following String static methods:

Implement extensions for Char.* static methods

Implement extensions for void `List<T>` methods

Background

The List<T> methods that add items to lists do not allow chaining because they return void instead of the list.

Requirements

Implement extension methods that return the list for

Notes

string.Format() unit tests use invalid format strings

Problem

The string.Format() unit tests use invalid composite format strings. In particular, several contain old-style percent (%) format specifications.

Requirements

  • Correct the format strings
  • Ensure unit tests still pass

Split casts out of Conversion Extensions

Background

The ConversionExtension class contains a combination extension methods for existing static methods (e.g., Int32.ParseInt()) and casts (e.g., ToLong()). This organization does not entirely make sense.

Requirements

  • Move the casts into new class CastExtensions.
  • Move unit tests into new class CastExtensionsTests.
  • Create additional unit tests if needed.

Add test coverage

Background

Test coverage is not computed.

Requirements

  • Add test code coverage computation and reports

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.