简体   繁体   中英

c# - teststack White, how to get/check a value from combobox

I need to check/get a value from a combobox.

In the inspection it looks like this:

I want to check with Assert.AreEqual that the value is what I am expecting. Is this possible?

Is this it?

if(!String.IsNullOrWhiteSpace(Combobox.SelectedValue.ToString()))
{
    string value = Combobox.SelectedValue.ToString();
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM