示例#1
0
        public void BuildPath_PathProviderShouldReturnString_True()
        {
            var sut = new LocalPathProviderBuilder()
                      .Build();

            sut.BuildPath("Test").Should().BeOfType(typeof(string));
        }
示例#2
0
        public void BuildPath_PathShouldNotBeNullOrEmptyIfDataProvided_True()
        {
            var fileName = "test.mp3";
            var sut      = new LocalPathProviderBuilder()
                           .WithPathCombine(fileName)
                           .Build();

            sut.BuildPath("test.mp3").Should().NotBeNullOrEmpty();
        }
示例#3
0
        public void BuildPath_PathShouldContainExtension_True()
        {
            var fileName = "test.mp3";
            var sut      = new LocalPathProviderBuilder()
                           .WithPathCombine("v", fileName)
                           .Build();

            sut.BuildPath("test.mp3").Should().Contain(".mp3");
        }