public void CanConvert_WithValidType_ReturnsTrue() { var converter = new IdConverter(); converter.CanConvert(typeof(Id <int>)).Should().BeTrue(); converter.CanConvert(typeof(Id <string>)).Should().BeTrue(); converter.CanConvert(typeof(Id <Guid>)).Should().BeTrue(); }
public void It_supports_all_silly_types_and_we_can_live_with_it(Type type) { IdConverter converter = new IdConverter(); converter.CanConvert(type).Should().Be(true); }
public void It_supports_the_types_that_it_needs_to_support(Type type) { IdConverter converter = new IdConverter(); converter.CanConvert(type).Should().Be(true); }
public void CanConvert_WithInvalidType_ReturnsFalse() { var converter = new IdConverter(); converter.CanConvert(typeof(int)).Should().BeFalse(); }