示例#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));
            }