public void Read_GenericMethodsWithConstraints() { // Arrange var apiTypeReader = new ApiTypeReader(); (Type type, CompilationUnitExpectation expectation) = ExpectedTypes.GenericMethodsWithConstraints; // Assert ReadExpectation(apiTypeReader, type, expectation); }
public void Read_IndexerProperties() { // Arrange var apiTypeReader = new ApiTypeReader(); (Type type, CompilationUnitExpectation expectation) = ExpectedTypes.IndexerProperties; // Assert ReadExpectation(apiTypeReader, type, expectation); }
public void Read_SimpleMethods() { // Arrange var apiTypeReader = new ApiTypeReader(); (Type type, CompilationUnitExpectation expectation) = ExpectedTypes.SimpleMethods; // Assert ReadExpectation(apiTypeReader, type, expectation); }
public void Read_EmptyClass() { // Arrange var apiTypeReader = new ApiTypeReader(); (Type type, CompilationUnitExpectation expectation) = ExpectedTypes.EmptyClass; // Assert ReadExpectation(apiTypeReader, type, expectation); }
public static void ReadExpectation(ApiTypeReader typeReader, Type type, CompilationUnitExpectation expectation) { var typeNameResolver = new TypeNameResolver { SimplifyNamespaces = true, }; // Act var compilationUnit = typeReader.ReadCompilationUnit(type, typeNameResolver); // Assert AssertCompilationUnit(expectation, compilationUnit); }