Ejemplo n.º 1
0
        public void TestMakeFileSizeToReadableString()
        {
            var    testMainWindowPresenter = new MainWindowPresenter();
            double length   = 1000;
            string expected = "1000 B";

            Assert.AreEqual(expected, testMainWindowPresenter.MakeFileSizeToReadableString(length));
            length   = 1024;
            expected = "1 KB";
            Assert.AreEqual(expected, testMainWindowPresenter.MakeFileSizeToReadableString(length));
        }