Example #1
0
            public void Combine_07()
            {
                var created = BCFv2Container.GetAbsolutePath("123456", "789/example.jpg");

                Assert.Equal("123456/789/example.jpg", created);
            }
Example #2
0
 public void Combine_06()
 {
     Assert.Throws <ArgumentOutOfRangeException>(() => { var created = BCFv2Container.GetAbsolutePath("123456", "../../example.jpg"); });
 }
Example #3
0
            public void OnlyBasePath_02()
            {
                var created = BCFv2Container.GetAbsolutePath("SomePath/SomeOther", null);

                Assert.Equal("SomePath/SomeOther", created);
            }
Example #4
0
            public void Combine_05b()
            {
                var created = BCFv2Container.GetAbsolutePath("123456/789/abc/def", "../../../example.jpg");

                Assert.Equal("123456/example.jpg", created);
            }
Example #5
0
            public void EmptyOnEmptyInput_03()
            {
                var created = BCFv2Container.GetAbsolutePath(string.Empty, null);

                Assert.True(string.IsNullOrWhiteSpace(created));
            }