Example #1
0
        public void GenerateTest()
        {
            var generator = new ContainerGenerator.ContainerGenerator();

            generator.Generate(10);

            Assert.AreEqual(10, generator.Containers.Count);
        }
Example #2
0
        public void FileCreationTest()
        {
            var generator = new ContainerGenerator.ContainerGenerator();

            generator.Generate(10, "containers");

            using (var data = new StreamReader(path: "containers.csv"))
            {
                var a = (char)data.Read();

                for (int i = 0; i < 6; i++)
                {
                    a = (char)data.Read();
                }

                Assert.AreEqual('t', a);
            }
        }