예제 #1
0
            public void Check_04()
            {
                var input    = "123/some.file";
                var expected = "some.file";
                var actual   = BCFv21Container.GetFilenameFromReference(input);

                Assert.Equal(expected, actual);
            }
예제 #2
0
            public void Check_01()
            {
                var container = BcfTestCaseFactory.GetContainerByTestName(TestCaseEnum.MaximumInformation);

                var references = container.Topics.SelectMany(t => t.Markup.Topic.DocumentReferences);

                foreach (var currentDocument in references.Where(r => !r.isExternal))
                {
                    var retrievedFile = container.GetAttachmentForDocumentReference(currentDocument);
                    Assert.NotNull(retrievedFile);
                    Assert.True(retrievedFile.SequenceEqual(
                                    container.FileAttachments[BCFv21Container.GetFilenameFromReference(currentDocument.ReferencedDocument)]));
                }
            }
예제 #3
0
 public void EmptyOnEmptyInput()
 {
     Assert.True(string.IsNullOrWhiteSpace(BCFv21Container.GetFilenameFromReference(string.Empty)));
 }