Пример #1
0
        public void CalculateBytes(string text1, string text2, long expected)
        {
            var fileUtil    = new FileUtil.FileGenerator("", 1, 1);
            var lengthBytes = fileUtil.CalculateBytes(text1, text2);

            Assert.Equal(expected, lengthBytes);
        }
Пример #2
0
        public void GenerateBuffer(string text, long expected)
        {
            var fileUtil = new FileUtil.FileGenerator("", 1, 1);
            var buffer   = fileUtil.GenerateBuffer(text);

            Assert.NotNull(buffer);
            Assert.Equal(expected, fileUtil.CalculateBytes(buffer.ToString()));
        }