Ejemplo n.º 1
0
        public void When_get_interface_name_is_called_for_generic_then_a_name_should_be_returned()
        {
            // Arrange
            var systemUnderTest = new TypeScript();

            // Act
            string result = systemUnderTest.GetInterfaceName(typeof(Lookup <int>));

            // Assert
            Assert.AreEqual("Lookup<number>", result);
        }
Ejemplo n.º 2
0
        public void When_get_interface_name_is_called_for_product_model_then_a_name_should_be_returned()
        {
            // Arrange
            var systemUnderTest = new TypeScript();

            systemUnderTest.PrefixClasses(true);

            // Act
            string result = systemUnderTest.GetInterfaceName(typeof(ProductModel));

            // Assert
            Assert.AreEqual("IProductModel", result);
        }