Esempio n. 1
0
        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();
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        public void It_supports_the_types_that_it_needs_to_support(Type type)
        {
            IdConverter converter = new IdConverter();

            converter.CanConvert(type).Should().Be(true);
        }
Esempio n. 4
0
        public void CanConvert_WithInvalidType_ReturnsFalse()
        {
            var converter = new IdConverter();

            converter.CanConvert(typeof(int)).Should().BeFalse();
        }