Delete some of the PasteTrackingServiceTests
There were some tests that generally tested the behavior that "if you close a document, the tracking span should go away". These tests weren't actually working right: 1. The AssertMissingPastedTextSpan helper fetched the text container and passed that to the PasteTrackingService. If the documents had been closed, then the container returned is a throwaway container which isn't a text buffer at all. The PasteTrackingService returns no span, but it always would have no matter what. As such, this case meant this was less a test of the service and more a test of TestWorkspace that the buffer was closed when expected. 2. If the documents were open at time, a buffer might get reused by TestWorkspace. In those cases, the product code also has no code that was clearing the buffer properties out: the test code did. As such, those tests passing weren't asserting product behavior, they were just asserting the test harness behavior. In practice, any attempt to resurrect these were really just tests about the test harness or TestWorkspace, and not product code. So deleting them is just the right thing.
Showing
想要评论请 注册 或 登录