Пример #1
0
 public void Combine_06()
 {
     Assert.Throws <ArgumentOutOfRangeException>(() =>
     {
         var created = BCFv21Container.GetAbsolutePath("123456", "../../example.jpg");
     });
 }
Пример #2
0
            public void Combine_07()
            {
                var created = BCFv21Container.GetAbsolutePath("123456", "789/example.jpg");

                Assert.Equal("123456/789/example.jpg", created);
            }
Пример #3
0
            public void OnlyBasePath_02()
            {
                var created = BCFv21Container.GetAbsolutePath("SomePath/SomeOther", null);

                Assert.Equal("SomePath/SomeOther", created);
            }
Пример #4
0
            public void Combine_05b()
            {
                var created = BCFv21Container.GetAbsolutePath("123456/789/abc/def", "../../../example.jpg");

                Assert.Equal("123456/example.jpg", created);
            }
Пример #5
0
            public void EmptyOnEmptyInput_03()
            {
                var created = BCFv21Container.GetAbsolutePath(string.Empty, null);

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