protected void RunAuthoringBufferElementDataTest(Type type) { TypeDefinition authoringType = AuthoringComponentPostProcessor.CreateBufferElementDataAuthoringType(TypeDefinitionFor(type)); RunTest(authoringType); }
protected override void AssertProducesInternal(Type systemType, DiagnosticType expectedDiagnosticType, string[] errorIdentifiers, bool useFailResolver = false) { DiagnosticMessage error = null; try { AuthoringComponentPostProcessor.CreateBufferElementDataAuthoringType(TypeDefinitionFor(systemType)); } catch (FoundErrorInUserCodeException exception) { error = exception.DiagnosticMessages.Single(); } Assert.AreEqual(expected: expectedDiagnosticType, actual: error?.DiagnosticType); Assert.IsTrue(error?.MessageData.Contains(errorIdentifiers.Single())); }