public void The_class_should_be_converted_to_CustomType() { var generator = new Generator(typeof(BasicType)); var modules = generator.GenerateMapping(); var type = modules[0].ModuleMembers[0].Should().BeOfType<CustomType>(); }
public void When_generating_for_one_type_the_module_count_should_be_one() { var generator = new Generator(typeof(BasicType)); var modules = generator.GenerateMapping(); modules.Count.Should().Be(1); }
public void An_Int32_should_be_converted_to_TypeScriptType_number() { var generator = new Generator(typeof(BasicType)); var modules = generator.GenerateMapping(); var type = ((CustomType)modules[0].ModuleMembers[0]).Properties.SingleOrDefault(p => p.Property.Name == "ID"); type.Type.Should().BeOfType<NumberType>(); }