Sannel.Helpers

Extension Methods

Strings

Extensions to convert to numbers
Extensions to convert to DateTime
Extensions to convert to Guid
Extensions to Remove all except alpha numeric characters

XElement

Extensions to get the value or attribute value as numbers
Extensions to get the value or attribute value as DateTime
Extensions to get the value or attribute value as Guid

Assembly

Extensions to get Assembly Attributes
Extensions to get the Title of the Assembly
Extensions to get the Version of the Assembly

Random

Extensions to get a Random String

Classes

NotifyPropertyChangedBase Based on Microsofts NotifyProperyChangedBase provided in WinRT projects. Implements INotifyPropertyChanged allowing developers to just call SetProperty(ref v, value, "PropertyName") when one of the classes properties change.

Matrix a wrapper around .NET's multi-dimensional array

Sannel.TestsHelpers

AssertHelpers

  • AssertIsMessage Check to make sure the Message from the exception is the message you provide.
  • ThrowsException Makes sure the provided exception has been thrown and that it has the message if provided

Last edited Apr 3, 2013 at 6:08 PM by sannelsoftware, version 5