public void CreationOfObjectTest() { Guid expectedGuid = Guid.NewGuid(); const string expectedText = "Running Test"; TextDocumentationEntry entry = new TextDocumentationEntry(expectedGuid, expectedText); Assert.NotNull(entry); Assert.Equal(expectedGuid, entry.Identifier); Assert.Equal(expectedText, entry.Text); }
public void ExportTest() { Guid expectedGuid = Guid.NewGuid(); const string expectedText = "Running Test"; TextDocumentationEntry entry = new TextDocumentationEntry(expectedGuid, expectedText); Mock <IExportService> exportServiceMock = new Mock <IExportService>(); exportServiceMock.Setup(exportService => exportService.WriteText(expectedText)); entry.Export(exportServiceMock.Object); exportServiceMock.VerifyAll(); }