use bezel::theme::{LENSED, Vibrancy};
use cydonia::model::workspace::{glass, vibrancy};
#[test]
fn an_unpressed_switch_leaves_the_answer_to_the_appearance() {
assert_eq!(vibrancy(None), Vibrancy::Auto);
}
#[test]
fn a_pressed_switch_holds_the_window_opaque_in_both_appearances() {
assert_eq!(vibrancy(Some(true)), Vibrancy::Off);
}
#[test]
fn a_released_switch_never_frosts_light() {
assert_eq!(vibrancy(Some(false)), Vibrancy::Auto);
}
#[test]
fn an_unpressed_switch_leaves_the_components_glassed() {
assert_eq!(glass(None), LENSED);
assert_eq!(glass(Some(false)), LENSED);
}
#[test]
fn a_pressed_switch_takes_the_glass_off_the_components() {
assert!(!glass(Some(true)));
}