Beispiel #1
0
        public void AnyToStringTypeConverter_WithObject_Convert_ReturnsStringOfObject()
        {
            var converter = new AnyToStringTypeConverter <ObjectClass>();

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

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

            var target = converter.Convert(null);

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

            var target = converter.Convert(source);

            target.ShouldBe(source);
        }