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

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

            sut.BuildPath("test.mp3").Should().NotBeNullOrEmpty();
        }
Example #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");
        }