public void TestThatDependentTypesFromInnerTypeAreReturned() { var innerType = typeof(List <string>); var innerArgType = ArgumentType.GetType(innerType); var type = new ArgumentTypeExtension(innerType); type.DependentTypes.Should().Equal(innerArgType.DependentTypes); }
public void NonOverriddenExtensionConstructedFromArgType() { var argType = new ArgumentTypeExtension(ArgumentType.Int); argType.InnerType.Should().Be(ArgumentType.Int); argType.DisplayName.Should().Be(argType.InnerType.DisplayName); argType.Type.Should().Be(argType.InnerType.Type); argType.SyntaxSummary.Should().Be(argType.InnerType.SyntaxSummary); }