added should panic test for not set up
This commit is contained in:
parent
880956a164
commit
ad03365d1e
1 changed files with 16 additions and 0 deletions
|
@ -49,4 +49,20 @@ fn send_on_multiple_threads() {
|
||||||
assert_eq!(final_state.timer_can_run, false);
|
assert_eq!(final_state.timer_can_run, false);
|
||||||
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();
|
||||||
}
|
}
|
Loading…
Reference in a new issue