public void Test_000_Should_create_instance()
        {
            // Arrange
            TermConverter instance = default;

            // Act
            Action action = () => instance = CreateInstance();

            // Assert
            Should.NotThrow(action);
            instance.ShouldNotBe(default);
Esempio n. 2
0
        public static void RegisterConverter(
            Type type,
            Func <string, TermOptions, object> fromStringConverter,
            Func <object, TermOptions, string> toStringConverter = null)
        {
            fromStringConverter.CheckNotNull(nameof(fromStringConverter));

            TypeTermConverters[type] = new TermConverter
            {
                FromStringConverter = fromStringConverter,
                ToStringConverter   = toStringConverter
            };
        }