public void DenyUser_WhenFileDoesntStartWithUser()
        {
            SimpleRoleProvider provider = new SimpleRoleProvider();
            string             path     = "C:/admin_test.txt";
            string             role     = "user";
            bool expected = false;

            bool actual = provider.HasAccess(path, role);

            Assert.Equal(expected, actual);
        }
        public void AllowAdmin()
        {
            SimpleRoleProvider provider = new SimpleRoleProvider();
            string             path     = "C:/user_test.txt";
            string             role     = "admin";
            bool expected = true;

            bool actual = provider.HasAccess(path, role);

            Assert.Equal(expected, actual);
        }
        public void AllowUser_WhenFileStartsWithUser()
        {
            SimpleRoleProvider provider = new SimpleRoleProvider();
            string             path     = "C:/user_test.txt";
            string             role     = "user";
            bool expected = true;

            bool actual = provider.HasAccess(path, role);

            Assert.Equal(expected, actual);
        }