extern crate windows_winmd as winmd; #[test] fn stringable() { let reader = winmd::TypeReader::get(); let def = reader.expect_type_def(("Windows.Foundation", "IStringable")); assert!(def.name() == ("Windows.Foundation", "IStringable")); let methods: Vec = def.methods().collect(); assert!(methods.len() == 1); let method = methods[0]; assert!(method.name() == "ToString"); }