public void NotSupportedCases(Type nativeType) { // arrange DotNetTypeInfoFactory factory = new DotNetTypeInfoFactory(); // act bool success = factory.TryCreate(nativeType, out TypeInfo typeInfo); // assert Assert.False(success); }
public void CreateTypeInfoFromValueType(Type nativeType, string expectedTypeName) { // arrange DotNetTypeInfoFactory factory = new DotNetTypeInfoFactory(); // act bool success = factory.TryCreate(nativeType, out TypeInfo typeInfo); // assert Assert.True(success); Assert.Equal(expectedTypeName, typeInfo.TypeFactory(new IntType()).Visualize()); }