Algorithmix.UnitTest.ShredTest.ShredFactoryTest C# (CSharp) Method

ShredFactoryTest() private method

private ShredFactoryTest ( ) : void
return void
        public void ShredFactoryTest()
        {
            Console.WriteLine("Loading File from TestDrive And From Factory Independently");
            var relativeDirectory = Path.Combine(CarusoTestDirectory, CarusoTestMaterialsFolder);
            var fullDirectory = Path.Combine(Drive.GetDriveRoot(), relativeDirectory);
            var mydrive = new Drive(relativeDirectory, Drive.Reason.Read);
            var shreds = Shred.Factory("image", fullDirectory);
            Assert.IsTrue(shreds.Count == mydrive.FileCount("image"));

            foreach (Shred shred in shreds)
            {
                Assert.IsTrue(File.Exists(shred.Filepath));
            }

            Console.WriteLine("Factory Test Successful");
        }