added should panic test for not set up

This commit is contained in:
Nickiel12 2021-12-16 15:50:29 -08:00
parent 880956a164
commit ad03365d1e

View file

@ -50,3 +50,19 @@ fn send_on_multiple_threads() {
assert_eq!(final_state.change_scene_on_change_slide_hotkey, false); assert_eq!(final_state.change_scene_on_change_slide_hotkey, false);
assert_eq!(final_state.stream_is_muted, true); assert_eq!(final_state.stream_is_muted, true);
} }
#[test]
#[should_panic]
fn io_handler_not_started_1() {
let io_handler = IOHandler::new();
let state = io_handler.get_states();
}
#[test]
#[should_panic]
fn io_handler_not_started_2() {
let io_handler = IOHandler::new();
let state = io_handler.close();
}