Example #1
0
        public void TestCreateDirectory()
        {
            JsonManagement creater = new JsonManagement();
            string         path    = $"{Environment.GetEnvironmentVariable("appdata")}/BankProfile";

            Assert.IsTrue(Directory.Exists(path));
            Assert.IsTrue(File.Exists($"{path}/bankProfile.json"));
        }
Example #2
0
        public void TestInsertNormalProfile()
        {
            JsonData fileData = new JsonData();

            fileData.LoginWindowLocation = new System.Drawing.Point(80, 90);

            JsonManagement writer = new JsonManagement();

            writer.InsertData(fileData);
        }
Example #3
0
        public void TestExtractNormalProfile()
        {
            JsonData excepted = new JsonData();

            excepted.LoginWindowLocation = new System.Drawing.Point(80, 90);

            JsonData fileData = new JsonData();

            JsonManagement reader = new JsonManagement();

            fileData = reader.ExtractData();

            Assert.AreEqual(excepted.LoginWindowLocation, fileData.LoginWindowLocation);
        }