Ejemplo n.º 1
0
        public void AnyToStringTypeConverter_WithObject_Convert_ReturnsStringOfObject()
        {
            var converter = new AnyToStringTypeConverter <ObjectClass>();

            var target = converter.Convert(new ObjectClass());

            target.ShouldBe("Hello");
        }
Ejemplo n.º 2
0
        public void AnyToStringTypeConverter_WithNull_Convert_ReturnsNullString()
        {
            var converter = new AnyToStringTypeConverter <ObjectClass>();

            var target = converter.Convert(null);

            target.ShouldBeNull();
        }
Ejemplo n.º 3
0
        public void AnyToStringTypeConverter_WithString_Convert_ReturnsNullString(string source)
        {
            var converter = new AnyToStringTypeConverter <string>();

            var target = converter.Convert(source);

            target.ShouldBe(source);
        }